readme.md updated for sensors

This commit is contained in:
Verkehrsrot committed 2019-03-16 11:41:04 +01:00
1 parent d597f50d53
commit 49bd69ca3a
2 files changed
+14 -9

No files matched your search

+9 -8
View File
@@ -45,25 +45,26 @@ uint8_t *sensor_read(uint8_t sensor) {
case 1:
// insert user specific sensor data frames here */
buf[0] = length;
buf[1] = 0xff;
buf[2] = 0xa0;
buf[3] = 0x01;
buf[1] = 0x01;
buf[2] = 0x02;
buf[3] = 0x03;
break;
case 2:
buf[0] = length;
buf[1] = 0xff;
buf[2] = 0xa0;
buf[3] = 0x02;
buf[1] = 0x01;
buf[2] = 0x02;
buf[3] = 0x03;
break;
case 3:
buf[0] = length;
buf[1] = 0xff;
buf[2] = 0xa0;
buf[1] = 0x01;
buf[2] = 0x02;
buf[3] = 0x03;
break;
}