AberdeenRSS / AberdeenRSS/FlightComputer

Implement I2C support for raspberry pi

Aperta
#11 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
0
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.