Commit da193c42 authored by iabdalkader's avatar iabdalkader Committed by Damien George

ports: Rename Arduino board LED pins to be consistent.

Signed-off-by: default avatariabdalkader <i.abdalkader@gmail.com>
parent 2772b88f
...@@ -147,6 +147,6 @@ D5,P210 ...@@ -147,6 +147,6 @@ D5,P210
LED1,P107 LED1,P107
LED2,P400 LED2,P400
LED3,P800 LED3,P800
LED_R,P107 LED_RED,P107
LED_G,P400 LED_GREEN,P400
LED_B,P800 LED_BLUE,P800
...@@ -19,9 +19,9 @@ A2,GPIO28 ...@@ -19,9 +19,9 @@ A2,GPIO28
A3,GPIO29 A3,GPIO29
SDA,GPIO12 SDA,GPIO12
SCL,GPIO13 SCL,GPIO13
LEDR,EXT_GPIO0 LED_RED,EXT_GPIO0
LEDG,EXT_GPIO1 LED_GREEN,EXT_GPIO1
LEDB,EXT_GPIO2 LED_BLUE,EXT_GPIO2
D18,EXT_GPIO3 D18,EXT_GPIO3
D19,EXT_GPIO4 D19,EXT_GPIO4
D20,EXT_GPIO5 D20,EXT_GPIO5
......
...@@ -184,9 +184,9 @@ extern struct _spi_bdev_t spi_bdev; ...@@ -184,9 +184,9 @@ extern struct _spi_bdev_t spi_bdev;
#define MICROPY_HW_USRSW_PRESSED (1) #define MICROPY_HW_USRSW_PRESSED (1)
// LEDs // LEDs
#define MICROPY_HW_LED1 (pyb_pin_LEDR) // red #define MICROPY_HW_LED1 (pyb_pin_LED_RED) // red
#define MICROPY_HW_LED2 (pyb_pin_LEDG) // green #define MICROPY_HW_LED2 (pyb_pin_LED_GREEN) // green
#define MICROPY_HW_LED3 (pyb_pin_LEDB) // yellow #define MICROPY_HW_LED3 (pyb_pin_LED_BLUE) // yellow
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_low(pin)) #define MICROPY_HW_LED_ON(pin) (mp_hal_pin_low(pin))
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_high(pin)) #define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_high(pin))
......
...@@ -179,9 +179,9 @@ UART6_RX,PC7 ...@@ -179,9 +179,9 @@ UART6_RX,PC7
BOOT0,BOOT0 BOOT0,BOOT0
DAC1,PA4 DAC1,PA4
DAC2,PA5 DAC2,PA5
LEDR,PI12 LED_RED,PI12
LEDG,PJ13 LED_GREEN,PJ13
LEDB,PE3 LED_BLUE,PE3
I2C1_SDA,PB9 I2C1_SDA,PB9
I2C1_SCL,PB8 I2C1_SCL,PB8
I2C2_SDA,PB11 I2C2_SDA,PB11
......
...@@ -180,9 +180,9 @@ extern struct _spi_bdev_t spi_bdev; ...@@ -180,9 +180,9 @@ extern struct _spi_bdev_t spi_bdev;
#define MICROPY_HW_CAN_IS_RESERVED(id) (id != PYB_CAN_1) #define MICROPY_HW_CAN_IS_RESERVED(id) (id != PYB_CAN_1)
// LEDs // LEDs
#define MICROPY_HW_LED1 (pyb_pin_LEDR) // red #define MICROPY_HW_LED1 (pyb_pin_LED_RED) // red
#define MICROPY_HW_LED2 (pyb_pin_LEDG) // green #define MICROPY_HW_LED2 (pyb_pin_LED_GREEN) // green
#define MICROPY_HW_LED3 (pyb_pin_LEDB) // yellow #define MICROPY_HW_LED3 (pyb_pin_LED_BLUE) // yellow
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_low(pin)) #define MICROPY_HW_LED_ON(pin) (mp_hal_pin_low(pin))
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_high(pin)) #define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_high(pin))
......
...@@ -180,9 +180,9 @@ BOOT0,BOOT0 ...@@ -180,9 +180,9 @@ BOOT0,BOOT0
OSCEN,PH1 OSCEN,PH1
DAC1,-PA4 DAC1,-PA4
DAC2,-PA5 DAC2,-PA5
LEDR,PE3 LED_RED,PE3
LEDG,PC13 LED_GREEN,PC13
LEDB,-PF4 LED_BLUE,-PF4
I2C1_SCL,PB8 I2C1_SCL,PB8
I2C1_SDA,PB9 I2C1_SDA,PB9
I2C2_SCL,PF1 I2C2_SCL,PF1
......
...@@ -177,9 +177,9 @@ extern struct _spi_bdev_t spi_bdev; ...@@ -177,9 +177,9 @@ extern struct _spi_bdev_t spi_bdev;
#define MICROPY_HW_USRSW_PRESSED (1) #define MICROPY_HW_USRSW_PRESSED (1)
// LEDs // LEDs
#define MICROPY_HW_LED1 (pyb_pin_LEDR) // red #define MICROPY_HW_LED1 (pyb_pin_LED_RED) // red
#define MICROPY_HW_LED2 (pyb_pin_LEDG) // green #define MICROPY_HW_LED2 (pyb_pin_LED_GREEN) // green
#define MICROPY_HW_LED3 (pyb_pin_LEDB) // yellow #define MICROPY_HW_LED3 (pyb_pin_LED_BLUE) // yellow
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_low(pin)) #define MICROPY_HW_LED_ON(pin) (mp_hal_pin_low(pin))
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_high(pin)) #define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_high(pin))
......
...@@ -203,9 +203,9 @@ BOOT0,BOOT0 ...@@ -203,9 +203,9 @@ BOOT0,BOOT0
OSCEN,PH1 OSCEN,PH1
DAC1,PA4 DAC1,PA4
DAC2,-PA5 DAC2,-PA5
LEDR,PK5 LED_RED,PK5
LEDG,PK6 LED_GREEN,PK6
LEDB,PK7 LED_BLUE,PK7
I2C1_SDA,PB7 I2C1_SDA,PB7
I2C1_SCL,PB6 I2C1_SCL,PB6
I2C3_SDA,PH8 I2C3_SDA,PH8
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment