ports: Rename Arduino board LED pins to be consistent.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
2772b88f6a
commit
da193c42f6
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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))
|
||||
|
||||
|
@ -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
|
||||
|
|
@ -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))
|
||||
|
||||
|
@ -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
|
||||
|
|
@ -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))
|
||||
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user