ports: Rename Arduino board LED pins to be consistent.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
iabdalkader 2023-10-01 16:33:27 +02:00 committed by Damien George
parent 2772b88f6a
commit da193c42f6
8 changed files with 24 additions and 24 deletions

View File

@ -147,6 +147,6 @@ D5,P210
LED1,P107
LED2,P400
LED3,P800
LED_R,P107
LED_G,P400
LED_B,P800
LED_RED,P107
LED_GREEN,P400
LED_BLUE,P800

1 P000 P000
147 LED1 P107
148 LED2 P400
149 LED3 P800
150 LED_R LED_RED P107
151 LED_G LED_GREEN P400
152 LED_B LED_BLUE P800

View File

@ -19,9 +19,9 @@ 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
D18,EXT_GPIO3
D19,EXT_GPIO4
D20,EXT_GPIO5

1 TX GPIO0
19 A3 GPIO29
20 SDA GPIO12
21 SCL GPIO13
22 LEDR LED_RED EXT_GPIO0
23 LEDG LED_GREEN EXT_GPIO1
24 LEDB LED_BLUE EXT_GPIO2
25 D18 EXT_GPIO3
26 D19 EXT_GPIO4
27 D20 EXT_GPIO5

View File

@ -184,9 +184,9 @@ extern struct _spi_bdev_t spi_bdev;
#define MICROPY_HW_USRSW_PRESSED (1)
// LEDs
#define MICROPY_HW_LED1 (pyb_pin_LEDR) // red
#define MICROPY_HW_LED2 (pyb_pin_LEDG) // green
#define MICROPY_HW_LED3 (pyb_pin_LEDB) // yellow
#define MICROPY_HW_LED1 (pyb_pin_LED_RED) // red
#define MICROPY_HW_LED2 (pyb_pin_LED_GREEN) // green
#define MICROPY_HW_LED3 (pyb_pin_LED_BLUE) // yellow
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_low(pin))
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_high(pin))

View File

@ -179,9 +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
I2C1_SDA,PB9
I2C1_SCL,PB8
I2C2_SDA,PB11

1 PA0 PA0
179 BOOT0 BOOT0
180 DAC1 PA4
181 DAC2 PA5
182 LEDR LED_RED PI12
183 LEDG LED_GREEN PJ13
184 LEDB LED_BLUE PE3
185 I2C1_SDA PB9
186 I2C1_SCL PB8
187 I2C2_SDA PB11

View File

@ -180,9 +180,9 @@ extern struct _spi_bdev_t spi_bdev;
#define MICROPY_HW_CAN_IS_RESERVED(id) (id != PYB_CAN_1)
// LEDs
#define MICROPY_HW_LED1 (pyb_pin_LEDR) // red
#define MICROPY_HW_LED2 (pyb_pin_LEDG) // green
#define MICROPY_HW_LED3 (pyb_pin_LEDB) // yellow
#define MICROPY_HW_LED1 (pyb_pin_LED_RED) // red
#define MICROPY_HW_LED2 (pyb_pin_LED_GREEN) // green
#define MICROPY_HW_LED3 (pyb_pin_LED_BLUE) // yellow
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_low(pin))
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_high(pin))

View File

@ -180,9 +180,9 @@ BOOT0,BOOT0
OSCEN,PH1
DAC1,-PA4
DAC2,-PA5
LEDR,PE3
LEDG,PC13
LEDB,-PF4
LED_RED,PE3
LED_GREEN,PC13
LED_BLUE,-PF4
I2C1_SCL,PB8
I2C1_SDA,PB9
I2C2_SCL,PF1

1 PA0 -PA0
180 OSCEN PH1
181 DAC1 -PA4
182 DAC2 -PA5
183 LEDR LED_RED PE3
184 LEDG LED_GREEN PC13
185 LEDB LED_BLUE -PF4
186 I2C1_SCL PB8
187 I2C1_SDA PB9
188 I2C2_SCL PF1

View File

@ -177,9 +177,9 @@ extern struct _spi_bdev_t spi_bdev;
#define MICROPY_HW_USRSW_PRESSED (1)
// LEDs
#define MICROPY_HW_LED1 (pyb_pin_LEDR) // red
#define MICROPY_HW_LED2 (pyb_pin_LEDG) // green
#define MICROPY_HW_LED3 (pyb_pin_LEDB) // yellow
#define MICROPY_HW_LED1 (pyb_pin_LED_RED) // red
#define MICROPY_HW_LED2 (pyb_pin_LED_GREEN) // green
#define MICROPY_HW_LED3 (pyb_pin_LED_BLUE) // yellow
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_low(pin))
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_high(pin))

View File

@ -203,9 +203,9 @@ BOOT0,BOOT0
OSCEN,PH1
DAC1,PA4
DAC2,-PA5
LEDR,PK5
LEDG,PK6
LEDB,PK7
LED_RED,PK5
LED_GREEN,PK6
LED_BLUE,PK7
I2C1_SDA,PB7
I2C1_SCL,PB6
I2C3_SDA,PH8

1 PA0 PA0
203 OSCEN PH1
204 DAC1 PA4
205 DAC2 -PA5
206 LEDR LED_RED PK5
207 LEDG LED_GREEN PK6
208 LEDB LED_BLUE PK7
209 I2C1_SDA PB7
210 I2C1_SCL PB6
211 I2C3_SDA PH8