Infrarotcontroller-Firmware
From Nibo
Contents |
Kommandos
Die folgenden Kommandos können über die TWI Schnittstelle zum Infrarotcontroller geschickt werden.
Kommando | Größe | Byte0 | Byte1 | Byte2 |
---|---|---|---|---|
Stop | 1 | 0x00 | - | - |
StartMeasure | 1 | 0x01 | - | - |
TransmitRC5 | 3 | 0x02 | RC5 Code |
Stop
Diesed Kommando stoppt das Aussenden von IR-Signalen.
Zustand
Das folgende Datenpaket kann über die TWI Schnittstelle vom Infrarotcontroller abgefragt werden und beschreibt den aktuellen Zustand:
Größe | Byte0 | Byte1 | Byte2 | Byte3 | Byte4 | Byte5 | Byte6 | Byte7 |
---|---|---|---|---|---|---|---|---|
8 | Dist. L | Dist. VL | Dist. V | Dist. VR | Dist. R | RC5 Zähler | RC5 Code |
16-Bit Werte
16-Bit Werte werden immer folgendermaßen übertragen:
Byte0 | Byte1 |
---|---|
Hi-Byte | Lo-Byte |