docs
This commit is contained in:
parent
736abdfee4
commit
351438680d
|
@ -8,8 +8,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
// D20
|
||||
#define LED_BLUE_PORT GPIOB
|
||||
#define LED_BLUE_PIN 13
|
||||
|
||||
// D21
|
||||
#define LED_GREEN_PORT GPIOA
|
||||
#define LED_GREEN_PIN 8
|
||||
|
|
|
@ -475,6 +475,7 @@ int main() {
|
|||
palSetPadMode(LED_BLUE_PORT, LED_BLUE_PIN, PAL_MODE_OUTPUT_PUSHPULL);
|
||||
|
||||
if ((id >> 8) == 0x9D) {
|
||||
// happy board - green D21 blinking
|
||||
palTogglePad(LED_GREEN_PORT, LED_GREEN_PIN);
|
||||
} else {
|
||||
palTogglePad(LED_BLUE_PORT, LED_BLUE_PIN);
|
||||
|
|
Loading…
Reference in New Issue