Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

poc switching arduino comms over to i2c #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mathyourlife
Copy link
Member

Roborio -> Arduino over USB is causing some headaches. Trying to switch over to an I2C connection instead.

Same functionality and led wiring should apply. USB to the arduino would switch to SCL and SDA wires from the roborio. Arduino would need a power source. Likely a 12V (2A) power supply to the arduino barrel jack.

void loop() {
if (Serial.available() > 0) {
byte value = Serial.read();
void receiveEvent(int howMany){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a count of events received?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants