blink the blue led

This commit is contained in:
Matthew Kennedy 2020-12-10 16:09:05 -08:00
parent a85a4a8c65
commit f1af6be009
1 changed files with 3 additions and 2 deletions

View File

@ -189,11 +189,12 @@ int main(void) {
halInit();
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++)
{
palTogglePad(GPIOB, 3);
palTogglePad(GPIOB, 5);
chThdSleepMilliseconds(40);
}