Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Jun 4, 2022
1 parent 736abdf commit 3514386
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GDI-4ch/firmware/io_pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions GDI-4ch/firmware/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3514386

Please sign in to comment.