-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Implement a part that can talk to other micro controllers over the I2C bus utilizing the GPIO headers on the raspberry.
This part needs to be able to be configured from the outside to register different actual components on the bus, like sensors. This could be inspired by how the current ArduinoSerial part is implemented. This part lets you either send commands over the serial port or register callbacks to be received if certain messages are coming in. For I2C we would probably want to center this implementation around the I2C device addresses such that callbacks can be defined for each of them and any outgoing commands are centered around them.
In addition to this it would also be useful to collect general statistic in the part, like if the connection is healty, how many incoming and outgoing messages have been sent, etc.
Note: Depending on the sensors used there might be dedicated I2C libraries, using those instead in a dedicated part could be simpler and quicker, see issues