mirror of https://github.com/rusefi/wideband.git
blink the blue led
This commit is contained in:
parent
a85a4a8c65
commit
f1af6be009
|
@ -189,11 +189,12 @@ int main(void) {
|
||||||
halInit();
|
halInit();
|
||||||
chSysInit();
|
chSysInit();
|
||||||
|
|
||||||
palSetPadMode(GPIOB, 3, PAL_MODE_OUTPUT_PUSHPULL);
|
// PB5 is blue LED
|
||||||
|
palSetPadMode(GPIOB, 5, PAL_MODE_OUTPUT_PUSHPULL);
|
||||||
|
|
||||||
for (size_t i = 0; i < 20; i++)
|
for (size_t i = 0; i < 20; i++)
|
||||||
{
|
{
|
||||||
palTogglePad(GPIOB, 3);
|
palTogglePad(GPIOB, 5);
|
||||||
chThdSleepMilliseconds(40);
|
chThdSleepMilliseconds(40);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue