@@ -63,13 +63,13 @@ struct AnalogPinConfig {
63
63
* Note that input pins are only readable by the remote device, while output pins are
64
64
* only writable. Different characteristic UUIDs are used for digital and analog pins */
65
65
#define DIGITAL_INPUT_PINCONFIG (pin ) \
66
- { (pin), #pin, {CHAR_UUID_DIGITAL, BleRead | BleNotify}, {" 2901" , #pin}, {" 2904" , (uint8_t []){0x2 , 0 , 0x27 , 0x00 , 0x1 , pin + 1 }, 7 }, {DESC_UUID_NUMDIGITALS, (uint8_t []){1 }, sizeof (uint8_t )} }
66
+ { (pin), #pin, {CHAR_UUID_DIGITAL, BleRead | BleNotify}, {" 2901" , #pin}, {" 2904" , (uint8_t []){0x02 , 0x00 , 0x00 , 0x027 , 0x1 , pin + 1 , 00 }, 7 }, {DESC_UUID_NUMDIGITALS, (uint8_t []){1 }, sizeof (uint8_t )} }
67
67
#define DIGITAL_OUTPUT_PINCONFIG (pin ) \
68
- { (pin), #pin, {CHAR_UUID_DIGITAL, BleWriteWithoutResponse | BleWrite}, {" 2901" , #pin}, {" 2904" , (uint8_t []){0x2 , 0 , 0x27 , 0x00 , 0x1 , pin + 1 }, 7 }, {DESC_UUID_NUMDIGITALS, (uint8_t []){1 }, sizeof (uint8_t )} }
68
+ { (pin), #pin, {CHAR_UUID_DIGITAL, BleWriteWithoutResponse | BleWrite}, {" 2901" , #pin}, {" 2904" , (uint8_t []){0x02 , 0x00 , 0x00 , 0x027 , 0x1 , pin + 1 , 00 }, 7 }, {DESC_UUID_NUMDIGITALS, (uint8_t []){1 }, sizeof (uint8_t )} }
69
69
#define ANALOG_INPUT_PINCONFIG (pin ) \
70
- { (pin), #pin, {CHAR_UUID_ANALOG, BleRead | BleNotify}, {" 2901" , #pin}, {" 2904" , (uint8_t []){0x6 , 0 , 0x27 , 0x00 , 0x1 , pin + 1 }, 7 } }
70
+ { (pin), #pin, {CHAR_UUID_ANALOG, BleRead | BleNotify}, {" 2901" , #pin}, {" 2904" , (uint8_t []){0x6 , 0x00 , 0x00 , 0x027 , 0x1 , pin + 1 , 00 }, 7 } }
71
71
#define ANALOG_OUTPUT_PINCONFIG (pin ) \
72
- { (pin), #pin, {CHAR_UUID_ANALOG, BleWriteWithoutResponse | BleWrite}, {" 2901" , #pin}, {" 2904" , (uint8_t []){0x6 , 0 , 0x27 , 0x00 , 0x1 , pin + 1 }, 7 } }
72
+ { (pin), #pin, {CHAR_UUID_ANALOG, BleWriteWithoutResponse | BleWrite}, {" 2901" , #pin}, {" 2904" , (uint8_t []){0x6 , 0x00 , 0x00 , 0x027 , 0x1 , pin + 1 , 00 }, 7 } }
73
73
74
74
/* The following lists of pins are configured and presented to
75
75
* the remote BLE device as digital/analog input/output pins
0 commit comments