here_rtk_kit
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| here_rtk_kit [2025/11/25 15:50] – [Table] millerjs | here_rtk_kit [2025/11/28 05:45] (current) – admin | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| | IMU | [[https:// | | IMU | [[https:// | ||
| | Barometer | | Barometer | ||
| + | |||
| + | ==== Sample Code ==== | ||
| + | === TCA62724 ==== | ||
| + | Solid purple, lowest brightness (still quite bright!) | ||
| + | |||
| + | <file c TCA62724_Purple.ino> | ||
| + | #include < | ||
| + | |||
| + | #define TCA62724_ADDR | ||
| + | #define SDA_PIN | ||
| + | #define SCL_PIN | ||
| + | |||
| + | void setup() { | ||
| + | Wire.begin(SDA_PIN, | ||
| + | delay(10); | ||
| + | | ||
| + | // Enable the LED driver | ||
| + | Wire.beginTransmission(TCA62724_ADDR); | ||
| + | Wire.write(0x84); | ||
| + | Wire.write(0x03); | ||
| + | Wire.endTransmission(); | ||
| + | | ||
| + | // Set Purple: Red=1, Green=0, Blue=1 (lowest brightness) | ||
| + | Wire.beginTransmission(TCA62724_ADDR); | ||
| + | Wire.write(0x81); | ||
| + | Wire.write(1); | ||
| + | Wire.write(0x82); | ||
| + | Wire.write(0); | ||
| + | Wire.write(0x83); | ||
| + | Wire.write(1); | ||
| + | Wire.endTransmission(); | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | // Nothing - LED stays purple | ||
| + | } | ||
| + | </ | ||
here_rtk_kit.txt · Last modified: by admin
