mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 08:53:56 -04:00
AP_Notify: fixed example build
This commit is contained in:
parent
d0e467aea0
commit
0811f9c175
@ -96,20 +96,22 @@ void full_spectrum()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define LED_DIM 0x11
|
||||||
|
|
||||||
// blink - blink the led at 10hz for 10 seconds
|
// blink - blink the led at 10hz for 10 seconds
|
||||||
void blink()
|
void blink()
|
||||||
{
|
{
|
||||||
// set colour to red
|
// set colour to red
|
||||||
toshiba_led.set_rgb(TOSHIBA_LED_DIM,0,0);
|
toshiba_led.set_rgb(LED_DIM,0,0);
|
||||||
|
|
||||||
// full spectrum test
|
// full spectrum test
|
||||||
for (uint8_t c=0; c<=2; c++ ) {
|
for (uint8_t c=0; c<=2; c++ ) {
|
||||||
if (c==0) {
|
if (c==0) {
|
||||||
toshiba_led.set_rgb(TOSHIBA_LED_DIM,0,0); // red
|
toshiba_led.set_rgb(LED_DIM,0,0); // red
|
||||||
}else if (c==1) {
|
}else if (c==1) {
|
||||||
toshiba_led.set_rgb(0,TOSHIBA_LED_DIM,0); // green
|
toshiba_led.set_rgb(0,LED_DIM,0); // green
|
||||||
}else{
|
}else{
|
||||||
toshiba_led.set_rgb(0,0,TOSHIBA_LED_DIM); // blue
|
toshiba_led.set_rgb(0,0,LED_DIM); // blue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user