mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: use 1/0 not HIGH/LOW for LED polarity
this fixes the build for pixracerled driver on px4-v2
This commit is contained in:
parent
f357eec78b
commit
ceeb5e6892
|
@ -50,8 +50,8 @@
|
|||
#define HAL_GPIO_A_LED_PIN 27
|
||||
#define HAL_GPIO_B_LED_PIN 26
|
||||
#define HAL_GPIO_C_LED_PIN 25
|
||||
#define HAL_GPIO_LED_ON LOW
|
||||
#define HAL_GPIO_LED_OFF HIGH
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
|
||||
#define HAL_BARO_MS5611_NAME "ms5611"
|
||||
#define HAL_BARO_MS5611_SPI_INT_NAME "ms5611_int"
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
#define HAL_GPIO_A_LED_PIN 61
|
||||
#define HAL_GPIO_B_LED_PIN 48
|
||||
#define HAL_GPIO_C_LED_PIN 117
|
||||
#define HAL_GPIO_LED_ON LOW
|
||||
#define HAL_GPIO_LED_OFF HIGH
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||
#define HAL_HAVE_SAFETY_SWITCH 1
|
||||
|
|
|
@ -41,8 +41,8 @@
|
|||
#define HAL_GPIO_A_LED_PIN 25
|
||||
#define HAL_GPIO_B_LED_PIN 26
|
||||
#define HAL_GPIO_C_LED_PIN 27
|
||||
#define HAL_GPIO_LED_ON HIGH
|
||||
#define HAL_GPIO_LED_OFF LOW
|
||||
#define HAL_GPIO_LED_ON 1
|
||||
#define HAL_GPIO_LED_OFF 0
|
||||
#define EXTERNAL_LED_GPS 28 // GPS LED - AN10
|
||||
#define EXTERNAL_LED_ARMED 29 // Armed LED - AN11
|
||||
#define EXTERNAL_LED_MOTOR1 30 // Motor1 LED - AN8
|
||||
|
|
Loading…
Reference in New Issue