Skip to content

Commit

Permalink
ports: Add LED pin aliases for all Arduino boards.
Browse files Browse the repository at this point in the history
The standard Arduino pinout uses LEDR/G/B and LED_BUILTIN (if available).
This patch adds aliases to match the standard pinout, while retaining
LED_RED/GREEN/BLUE for compatibility with existing scripts and examples.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
  • Loading branch information
iabdalkader authored and dpgeorge committed Jan 26, 2024
1 parent 8d9d74b commit 4a2e510
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ports/esp32/boards/ARDUINO_NANO_ESP32/pins.csv
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ D10,GPIO21
D11,GPIO38
D12,GPIO47
D13,GPIO48
LEDR,GPIO46
LEDG,GPIO0
LEDB,GPIO45
LED_RED,GPIO46
LED_GREEN,GPIO0
LED_BLUE,GPIO45
Expand Down
3 changes: 3 additions & 0 deletions ports/renesas-ra/boards/ARDUINO_PORTENTA_C33/pins.csv
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ D5,P210
LED1,P107
LED2,P400
LED3,P800
LEDR,P107
LEDG,P400
LEDB,P800
LED_RED,P107
LED_GREEN,P400
LED_BLUE,P800
4 changes: 4 additions & 0 deletions ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/pins.csv
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ D11,GPIO7
D12,GPIO4
D13,GPIO6
LED,GPIO6
LED_BUILTIN,GPIO6
A0,GPIO26
A1,GPIO27
A2,GPIO28
A3,GPIO29
SDA,GPIO12
SCL,GPIO13
LEDR,EXT_GPIO0
LEDG,EXT_GPIO1
LEDB,EXT_GPIO2
LED_RED,EXT_GPIO0
LED_GREEN,EXT_GPIO1
LED_BLUE,EXT_GPIO2
Expand Down
3 changes: 3 additions & 0 deletions ports/stm32/boards/ARDUINO_GIGA/pins.csv
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ UART6_RX,PC7
#BOOT0,BOOT0
DAC1,PA4
DAC2,PA5
LEDR,PI12
LEDG,PJ13
LEDB,PE3
LED_RED,PI12
LED_GREEN,PJ13
LED_BLUE,PE3
Expand Down
3 changes: 3 additions & 0 deletions ports/stm32/boards/ARDUINO_NICLA_VISION/pins.csv
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ USB_DP,PA12
OSCEN,PH1
DAC1,-PA4
DAC2,-PA5
LEDR,PE3
LEDG,PC13
LEDB,-PF4
LED_RED,PE3
LED_GREEN,PC13
LED_BLUE,-PF4
Expand Down
3 changes: 3 additions & 0 deletions ports/stm32/boards/ARDUINO_PORTENTA_H7/pins.csv
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ UART8_RX,PJ9
OSCEN,PH1
DAC1,PA4
DAC2,-PA5
LEDR,PK5
LEDG,PK6
LEDB,PK7
LED_RED,PK5
LED_GREEN,PK6
LED_BLUE,PK7
Expand Down

0 comments on commit 4a2e510

Please sign in to comment.