|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
|||
|
|||
|
Re: Arduino + CRIO
https://github.com/FRC-Team-4143/swerveneopixel
This sketch controls Adafruit neopixel leds over i2c. I2c is echoed over serial for debugging. Crio code (in c++) is something like: Code:
m_i2c = DigitalModule::GetInstance(1)->GetI2C(0x04 << 1); RobotMap::m_i2c->Write(0x0, 50); The i2c address is 0x4, but you have to shift it left on the Crio to write. That is the tricky part. Last edited by RyanShoff : 05-08-2014 at 14:11. Reason: changed parameter to not get confused with address |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|