Skip to content

Commit c2baf15

Browse files
committed
phoenix-arduino-joystick: turn on LED during setup() as sign of life
1 parent 72aeff6 commit c2baf15

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/phoenix-arduino-joystick/phoenix-arduino-joystick.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ const Potentiometer axesPotentiometers[kNumAxes] = {
138138

139139
void setup()
140140
{
141+
// Turn on LED as a sign of life
142+
int ledPins[] = {9, 5, 3};
143+
u8 ledColor[] = {31, 39, 0};
144+
for (int i = 0; i < sizeof(color); i++) {
145+
analogWrite(ledPins[i], ledColor[i]);
146+
}
147+
141148
hc165_collection_setup(hc165_collection);
142149

143150
// Add USB HID device description of the Phoenix

0 commit comments

Comments
 (0)