I'm sending a byte to my Raspi 3 and my Arduino via Bluetooth Serial.
e.g. 0b00000011
(mode), 0b01000001
(mode), 0b10010000
(direction)
The LSB indicates if the byte is a direction command or a instruction to switch mode, so I need to extract it in Arduino C and in Python.
Does anyone know how to do this? Thanks in advance!