Add pointer_delta_t and make the master and slaves handle it.

This commit is contained in:
László Monda
2019-06-11 21:58:40 +02:00
parent a57fedec70
commit a857780e42
5 changed files with 37 additions and 1 deletions

View File

@@ -48,6 +48,11 @@
uint8_t data[I2C_MESSAGE_MAX_PAYLOAD_LENGTH];
} ATTR_PACKED i2c_message_t;
typedef struct {
int16_t x;
int16_t y;
} ATTR_PACKED pointer_delta_t;
// Variables:
extern char SlaveSyncString[];