AberdeenRSS / AberdeenRSS/FlightComputer

Implement I2C support for raspberry pi

Đang mở
#11 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
0
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.