Skip to content

Commit d0ec83b

Browse files
committed
setEachLed is setAllLeds
1 parent 95cbe5c commit d0ec83b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/firmware_01/firmware_01.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void loop(){
6060
*/
6161
case 'L':
6262
packeter.unpacketC1B(code,leds);
63-
robot.setEachLed(leds);
63+
robot.setAllLeds(leds);
6464
break;
6565
}
6666
}

src/Arduino_Robot_Firmware.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ void Arduino_Robot_Firmware::setLeds(const uint32_t red, const uint32_t green, c
453453
setLedRight(red,green,blue);
454454
}
455455

456-
void Arduino_Robot_Firmware::setEachLed(const uint8_t value){
456+
void Arduino_Robot_Firmware::setAllLeds(const uint8_t value){
457457
setLedBuiltin(value&1);
458458
setIlluminator((value>>1)&1);
459459
setLedLeftRed(((value>>2)&1));

src/Arduino_Robot_Firmware.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class Arduino_Robot_Firmware{
159159
void setLedRightBlue(const uint32_t blue);
160160
void setLeds(const uint32_t color);
161161
void setLeds(const uint32_t red, const uint32_t green, const uint32_t blue);
162-
void setEachLed(const uint8_t value);
162+
void setAllLeds(const uint8_t value);
163163

164164

165165
// Imu

0 commit comments

Comments
 (0)