This commit is contained in:
rusefi 2022-06-04 17:39:53 -04:00
parent 736abdfee4
commit 351438680d
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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);