From a148f07ac5f60028f820f26bf62685ec13cbce9a Mon Sep 17 00:00:00 2001 From: DolphinRC <53554809+DolphinRC@users.noreply.github.com> Date: Fri, 15 May 2026 21:45:00 +0800 Subject: [PATCH 1/9] add DolphinRC_F722 --- configs/DolphinRC_F722/config.h | 106 ++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 configs/DolphinRC_F722/config.h diff --git a/configs/DolphinRC_F722/config.h b/configs/DolphinRC_F722/config.h new file mode 100644 index 000000000..a2ef88ae2 --- /dev/null +++ b/configs/DolphinRC_F722/config.h @@ -0,0 +1,106 @@ +/* + * This file is part of Betaflight. + * + * Betaflight is free software. You can redistribute this software + * and/or modify this software under the terms of the GNU General + * Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later + * version. + * + * Betaflight is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this software. + * + * If not, see . + */ + +#pragma once + +#define FC_TARGET_MCU STM32F7X2 + +#define BOARD_NAME DolphinRC_F722 +#define MANUFACTURER_ID DolphinRC + +#define USE_ACC +#define USE_ACC_SPI_ICM42688P +#define USE_GYRO +#define USE_GYRO_SPI_ICM42688P +#define USE_FLASH +#define USE_FLASH_W25Q128FV +#define USE_BARO +#define USE_BARO_BMP280 +#define USE_MAX7456 + +#define BEEPER_PIN PB8 +#define MOTOR1_PIN PA15 //TIM2_CH1 +#define MOTOR2_PIN PB3 //TIM2_CH2 +#define MOTOR3_PIN PB10 //TIM2_CH3 +#define MOTOR4_PIN PB11 //TIM2_CH4 +#define MOTOR5_PIN PA6 //TIM3_CH1 +#define MOTOR6_PIN PB0 //TIM3_CH2 +#define MOTOR7_PIN PB1 //TIM3_CH3 +#define MOTOR8_PIN PC7 //TIM3_CH4 +#define LED_STRIP_PIN PC6 //TIM8_CH1 +#define UART1_TX_PIN PA9 +#define UART1_RX_PIN PA10 +#define UART2_TX_PIN PA2 +#define UART2_RX_PIN PA3 +#define UART4_TX_PIN PA0 +#define UART4_RX_PIN PA1 +#define UART5_TX_PIN PC12 +#define UART5_RX_PIN PD2 +#define I2C1_SCL_PIN PB6 +#define I2C1_SDA_PIN PB7 +#define LED0_PIN PC8 +#define LED1_PIN PC9 +#define SPI1_SCK_PIN PA5 +#define SPI1_SDI_PIN PB4 +#define SPI1_SDO_PIN PA7 +#define SPI2_SCK_PIN PB13 +#define SPI2_SDI_PIN PC2 +#define SPI2_SDO_PIN PC3 +#define SPI3_SCK_PIN PC10 +#define SPI3_SDI_PIN PC11 +#define SPI3_SDO_PIN PB2 +#define ADC_VBAT_PIN PC0 +#define ADC_CURR_PIN PC1 +#define PINIO1_PIN PB14 +#define PINIO2_PIN PB15 +#define FLASH_CS_PIN PB5 +#define MAX7456_SPI_CS_PIN PC4 +#define GYRO_1_EXTI_PIN PB9 +#define GYRO_1_CS_PIN PA4 + +#define TIMER_PIN_MAPPING \ + TIMER_PIN_MAP(0, MOTOR1_PIN, 1, 0) \ + TIMER_PIN_MAP(1, MOTOR2_PIN, 1, 0) \ + TIMER_PIN_MAP(2, MOTOR3_PIN, 1, 0) \ + TIMER_PIN_MAP(3, MOTOR4_PIN, 1, 0) \ + TIMER_PIN_MAP(4, MOTOR5_PIN, 2, 0) \ + TIMER_PIN_MAP(5, MOTOR6_PIN, 2, 0) \ + TIMER_PIN_MAP(6, MOTOR7_PIN, 2, 0) \ + TIMER_PIN_MAP(7, MOTOR8_PIN, 2, 0) \ + TIMER_PIN_MAP(8, LED_STRIP_PIN, 2, 0) \ + +#define ADC1_DMA_OPT 0 +#define TIMUP8_DMA_OPT 0 +#define TIMUP2_DMA_OPT 0 +#define TIMUP3_DMA_OPT 0 +#define BARO_I2C_INSTANCE I2CDEV_1 +#define PINIO1_BOX 40 +#define PINIO2_BOX 41 +#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH +#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC +#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC +#define DEFAULT_VOLTAGE_METER_SCALE_DEFAULT 110 +#define DEFAULT_CURRENT_METER_SCALE 250 +#define BEEPER_INVERTED +#define MAX7456_SPI_INSTANCE SPI2 +#define FLASH_SPI_INSTANCE SPI3 +#define GYRO_1_SPI_INSTANCE SPI1 +#define GYRO_1_ALIGN CW90_DEG \ No newline at end of file From 22cd843d3ee56f391dfeffc3aeb9b41dd04254ad Mon Sep 17 00:00:00 2001 From: DolphinRC <53554809+DolphinRC@users.noreply.github.com> Date: Fri, 15 May 2026 21:54:23 +0800 Subject: [PATCH 2/9] add DolphinRC --- Manufacturers.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Manufacturers.md b/Manufacturers.md index cf83f7768..96f4bddf0 100644 --- a/Manufacturers.md +++ b/Manufacturers.md @@ -149,3 +149,4 @@ This is the official list of manufacturer ids (`manufacturer_id` in the target c |ZEEZ|Zeez RC|https://www.zeezrc.com/| |ZERO|Zerodrag|https://zerodrag.in/| |ZEXM|Shenzhen Zexin Future Technology Co., Ltd|http://zexfpv.com/| +|DOLP|DolphinRC|https://www.dolphinrc.com/| From c833dda4b37bef725d6ad48d1bbf861fbb9a4e1d Mon Sep 17 00:00:00 2001 From: DolphinRC <53554809+DolphinRC@users.noreply.github.com> Date: Sat, 16 May 2026 18:00:58 +0800 Subject: [PATCH 3/9] Remove unused motor pin definitions Removed unused motor pin definitions for MOTOR5 to MOTOR8. --- configs/DolphinRC_F722/config.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configs/DolphinRC_F722/config.h b/configs/DolphinRC_F722/config.h index a2ef88ae2..2def99f40 100644 --- a/configs/DolphinRC_F722/config.h +++ b/configs/DolphinRC_F722/config.h @@ -41,10 +41,6 @@ #define MOTOR2_PIN PB3 //TIM2_CH2 #define MOTOR3_PIN PB10 //TIM2_CH3 #define MOTOR4_PIN PB11 //TIM2_CH4 -#define MOTOR5_PIN PA6 //TIM3_CH1 -#define MOTOR6_PIN PB0 //TIM3_CH2 -#define MOTOR7_PIN PB1 //TIM3_CH3 -#define MOTOR8_PIN PC7 //TIM3_CH4 #define LED_STRIP_PIN PC6 //TIM8_CH1 #define UART1_TX_PIN PA9 #define UART1_RX_PIN PA10 @@ -103,4 +99,4 @@ #define MAX7456_SPI_INSTANCE SPI2 #define FLASH_SPI_INSTANCE SPI3 #define GYRO_1_SPI_INSTANCE SPI1 -#define GYRO_1_ALIGN CW90_DEG \ No newline at end of file +#define GYRO_1_ALIGN CW90_DEG From a36e439863778c832554ffa452e88c92c354431a Mon Sep 17 00:00:00 2001 From: DolphinRC <53554809+DolphinRC@users.noreply.github.com> Date: Wed, 20 May 2026 12:20:42 +0800 Subject: [PATCH 4/9] Modify config.h for manufacturer ID and pin assignments Updated manufacturer ID and pin mappings for motors and LEDs. --- configs/DolphinRC_F722/config.h | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/configs/DolphinRC_F722/config.h b/configs/DolphinRC_F722/config.h index 2def99f40..b25a109f8 100644 --- a/configs/DolphinRC_F722/config.h +++ b/configs/DolphinRC_F722/config.h @@ -24,7 +24,7 @@ #define FC_TARGET_MCU STM32F7X2 #define BOARD_NAME DolphinRC_F722 -#define MANUFACTURER_ID DolphinRC +#define MANUFACTURER_ID DOLP #define USE_ACC #define USE_ACC_SPI_ICM42688P @@ -37,11 +37,11 @@ #define USE_MAX7456 #define BEEPER_PIN PB8 -#define MOTOR1_PIN PA15 //TIM2_CH1 -#define MOTOR2_PIN PB3 //TIM2_CH2 -#define MOTOR3_PIN PB10 //TIM2_CH3 -#define MOTOR4_PIN PB11 //TIM2_CH4 -#define LED_STRIP_PIN PC6 //TIM8_CH1 +#define MOTOR1_PIN PC6 //TIM8_CH1 +#define MOTOR2_PIN PC7 //TIM8_CH2 +#define MOTOR3_PIN PC8 //TIM8_CH3 +#define MOTOR4_PIN PC9 //TIM8_CH4 +#define LED_STRIP_PIN PB1 //TIM3_CH4 #define UART1_TX_PIN PA9 #define UART1_RX_PIN PA10 #define UART2_TX_PIN PA2 @@ -52,8 +52,8 @@ #define UART5_RX_PIN PD2 #define I2C1_SCL_PIN PB6 #define I2C1_SDA_PIN PB7 -#define LED0_PIN PC8 -#define LED1_PIN PC9 +#define LED0_PIN PB11 +#define LED1_PIN PB12 #define SPI1_SCK_PIN PA5 #define SPI1_SDI_PIN PB4 #define SPI1_SDO_PIN PA7 @@ -69,23 +69,19 @@ #define PINIO2_PIN PB15 #define FLASH_CS_PIN PB5 #define MAX7456_SPI_CS_PIN PC4 -#define GYRO_1_EXTI_PIN PB9 +#define GYRO_1_EXTI_PIN PB10 #define GYRO_1_CS_PIN PA4 +#define GYRO_1_CLKIN_PIN PA6 //TIM13_CH1 #define TIMER_PIN_MAPPING \ TIMER_PIN_MAP(0, MOTOR1_PIN, 1, 0) \ TIMER_PIN_MAP(1, MOTOR2_PIN, 1, 0) \ TIMER_PIN_MAP(2, MOTOR3_PIN, 1, 0) \ TIMER_PIN_MAP(3, MOTOR4_PIN, 1, 0) \ - TIMER_PIN_MAP(4, MOTOR5_PIN, 2, 0) \ - TIMER_PIN_MAP(5, MOTOR6_PIN, 2, 0) \ - TIMER_PIN_MAP(6, MOTOR7_PIN, 2, 0) \ - TIMER_PIN_MAP(7, MOTOR8_PIN, 2, 0) \ - TIMER_PIN_MAP(8, LED_STRIP_PIN, 2, 0) \ + TIMER_PIN_MAP(4, LED_STRIP_PIN, 1, 0) \ #define ADC1_DMA_OPT 0 #define TIMUP8_DMA_OPT 0 -#define TIMUP2_DMA_OPT 0 #define TIMUP3_DMA_OPT 0 #define BARO_I2C_INSTANCE I2CDEV_1 #define PINIO1_BOX 40 From 8692ff4d56f8bde789eb129585d45cb29b877aa2 Mon Sep 17 00:00:00 2001 From: DolphinRC <53554809+DolphinRC@users.noreply.github.com> Date: Wed, 20 May 2026 18:56:16 +0800 Subject: [PATCH 5/9] add DolphinRC_F722 --- Manufacturers.md | 3 +- configs/DolphinRC_F722/config.h | 64 +++++++++++++++------------------ 2 files changed, 31 insertions(+), 36 deletions(-) diff --git a/Manufacturers.md b/Manufacturers.md index 96f4bddf0..f1f47c592 100644 --- a/Manufacturers.md +++ b/Manufacturers.md @@ -44,6 +44,7 @@ This is the official list of manufacturer ids (`manufacturer_id` in the target c |DRNR|Shenzhen Zhimu Technology Co., Ltd|https://www.droneer.com| |DRRC|DroidRC|https://github.com/xiaoxiabub| |DYST|DongYang Smart Technology Co., Ltd (dys)|http://www.dys.hk/| +|DOLP|DolphinRC|https://www.dolphinrc.com/| |EACH|eachine|https://www.eachine.com/| |EASP|Ewing Aerospace|https://ewingaerospace.com/| |EMAX|EMAX|https://emaxmodel.com/| @@ -149,4 +150,4 @@ This is the official list of manufacturer ids (`manufacturer_id` in the target c |ZEEZ|Zeez RC|https://www.zeezrc.com/| |ZERO|Zerodrag|https://zerodrag.in/| |ZEXM|Shenzhen Zexin Future Technology Co., Ltd|http://zexfpv.com/| -|DOLP|DolphinRC|https://www.dolphinrc.com/| + diff --git a/configs/DolphinRC_F722/config.h b/configs/DolphinRC_F722/config.h index a2ef88ae2..8ba91b9fa 100644 --- a/configs/DolphinRC_F722/config.h +++ b/configs/DolphinRC_F722/config.h @@ -22,30 +22,24 @@ #pragma once #define FC_TARGET_MCU STM32F7X2 - -#define BOARD_NAME DolphinRC_F722 -#define MANUFACTURER_ID DolphinRC - +#define BOARD_NAME DOLPHINRC_F722 +#define MANUFACTURER_ID DOLP #define USE_ACC #define USE_ACC_SPI_ICM42688P #define USE_GYRO #define USE_GYRO_SPI_ICM42688P +#define USE_GYRO_CLKIN #define USE_FLASH #define USE_FLASH_W25Q128FV #define USE_BARO #define USE_BARO_BMP280 #define USE_MAX7456 - #define BEEPER_PIN PB8 -#define MOTOR1_PIN PA15 //TIM2_CH1 -#define MOTOR2_PIN PB3 //TIM2_CH2 -#define MOTOR3_PIN PB10 //TIM2_CH3 -#define MOTOR4_PIN PB11 //TIM2_CH4 -#define MOTOR5_PIN PA6 //TIM3_CH1 -#define MOTOR6_PIN PB0 //TIM3_CH2 -#define MOTOR7_PIN PB1 //TIM3_CH3 -#define MOTOR8_PIN PC7 //TIM3_CH4 -#define LED_STRIP_PIN PC6 //TIM8_CH1 +#define MOTOR1_PIN PC6 //TIM8_CH1 +#define MOTOR2_PIN PC7 //TIM8_CH2 +#define MOTOR3_PIN PC8 //TIM8_CH3 +#define MOTOR4_PIN PC9 //TIM8_CH4 +#define LED_STRIP_PIN PB1 //TIM3_CH4 #define UART1_TX_PIN PA9 #define UART1_RX_PIN PA10 #define UART2_TX_PIN PA2 @@ -56,8 +50,8 @@ #define UART5_RX_PIN PD2 #define I2C1_SCL_PIN PB6 #define I2C1_SDA_PIN PB7 -#define LED0_PIN PC8 -#define LED1_PIN PC9 +#define LED0_PIN PB11 +#define LED1_PIN PB12 #define SPI1_SCK_PIN PA5 #define SPI1_SDI_PIN PB4 #define SPI1_SDO_PIN PA7 @@ -73,34 +67,34 @@ #define PINIO2_PIN PB15 #define FLASH_CS_PIN PB5 #define MAX7456_SPI_CS_PIN PC4 -#define GYRO_1_EXTI_PIN PB9 +#define GYRO_1_EXTI_PIN PB10 #define GYRO_1_CS_PIN PA4 - -#define TIMER_PIN_MAPPING \ - TIMER_PIN_MAP(0, MOTOR1_PIN, 1, 0) \ - TIMER_PIN_MAP(1, MOTOR2_PIN, 1, 0) \ - TIMER_PIN_MAP(2, MOTOR3_PIN, 1, 0) \ - TIMER_PIN_MAP(3, MOTOR4_PIN, 1, 0) \ - TIMER_PIN_MAP(4, MOTOR5_PIN, 2, 0) \ - TIMER_PIN_MAP(5, MOTOR6_PIN, 2, 0) \ - TIMER_PIN_MAP(6, MOTOR7_PIN, 2, 0) \ - TIMER_PIN_MAP(7, MOTOR8_PIN, 2, 0) \ - TIMER_PIN_MAP(8, LED_STRIP_PIN, 2, 0) \ - -#define ADC1_DMA_OPT 0 -#define TIMUP8_DMA_OPT 0 -#define TIMUP2_DMA_OPT 0 -#define TIMUP3_DMA_OPT 0 +#define GYRO_1_CLKIN_PIN PA6 //TIM13_CH1 +#define TIMER_PIN_MAPPING \ + TIMER_PIN_MAP(0, MOTOR1_PIN, 2, 0) \ + TIMER_PIN_MAP(1, MOTOR2_PIN, 2, 1) \ + TIMER_PIN_MAP(2, MOTOR3_PIN, 2, 1) \ + TIMER_PIN_MAP(3, MOTOR4_PIN, 2, 0) \ + TIMER_PIN_MAP(4, LED_STRIP_PIN, 2, 0) \ + TIMER_PIN_MAP(5, GYRO_1_CLKIN_PIN, 2, -1) \ + TIMER_PIN_MAP(6, BEEPER_PIN, 1, -1) \ +#define ADC_INSTANCE ADC3 +#define ADC_DMA_OPT 1 #define BARO_I2C_INSTANCE I2CDEV_1 #define PINIO1_BOX 40 #define PINIO2_BOX 41 +#define PINIO1_CONFIG 129 +#define PINIO2_CONFIG 129 +#define BOX_USER1_NAME "12V BEC" +#define BOX_USER2_NAME "CAM 1,2" #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_VOLTAGE_METER_SCALE_DEFAULT 110 -#define DEFAULT_CURRENT_METER_SCALE 250 #define BEEPER_INVERTED +#define LED0_INVERTED +#define LED1_INVERTED #define MAX7456_SPI_INSTANCE SPI2 #define FLASH_SPI_INSTANCE SPI3 #define GYRO_1_SPI_INSTANCE SPI1 -#define GYRO_1_ALIGN CW90_DEG \ No newline at end of file +#define GYRO_1_ALIGN CW90_DEG From 84085cd63e634696cba46af027543f160172eb44 Mon Sep 17 00:00:00 2001 From: DolphinRC <53554809+DolphinRC@users.noreply.github.com> Date: Wed, 20 May 2026 19:19:53 +0800 Subject: [PATCH 6/9] Update config.h --- configs/{DolphinRC_F722 => DOLPHINRC_F722}/config.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename configs/{DolphinRC_F722 => DOLPHINRC_F722}/config.h (100%) diff --git a/configs/DolphinRC_F722/config.h b/configs/DOLPHINRC_F722/config.h similarity index 100% rename from configs/DolphinRC_F722/config.h rename to configs/DOLPHINRC_F722/config.h From b2b14a2e9f14ee4e0801aa44286c38f99e7f7c0a Mon Sep 17 00:00:00 2001 From: DolphinRC <53554809+DolphinRC@users.noreply.github.com> Date: Sun, 24 May 2026 19:33:43 +0800 Subject: [PATCH 7/9] Apply suggestion from @osirisinferi Co-authored-by: Osiris Inferi --- Manufacturers.md | 1 - 1 file changed, 1 deletion(-) diff --git a/Manufacturers.md b/Manufacturers.md index f1f47c592..8fdc69496 100644 --- a/Manufacturers.md +++ b/Manufacturers.md @@ -150,4 +150,3 @@ This is the official list of manufacturer ids (`manufacturer_id` in the target c |ZEEZ|Zeez RC|https://www.zeezrc.com/| |ZERO|Zerodrag|https://zerodrag.in/| |ZEXM|Shenzhen Zexin Future Technology Co., Ltd|http://zexfpv.com/| - From a8947621fa3a3148623690270420c8d507a72761 Mon Sep 17 00:00:00 2001 From: DolphinRC <53554809+DolphinRC@users.noreply.github.com> Date: Sun, 24 May 2026 19:36:44 +0800 Subject: [PATCH 8/9] Remove duplicate DolphinRC entry Removed duplicate entry for DolphinRC in the Manufacturers list. --- Manufacturers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Manufacturers.md b/Manufacturers.md index 8fdc69496..24758e120 100644 --- a/Manufacturers.md +++ b/Manufacturers.md @@ -39,12 +39,12 @@ This is the official list of manufacturer ids (`manufacturer_id` in the target c |DFRA|Drone FPV Racer|https://www.drone-fpv-racer.com/| |DFRC|Shenzhen Jingfei Technology Co., Ltd|https://dreamflyrc.com/| |DIAT|Diatone Innovations|https://www.diatoneusa.com/| +|DOLP|DolphinRC|https://www.dolphinrc.com/| |DRCL|dronercland|https://www.instagram.com/dronercland/| |DREA|DREAMRC|https://github.com/dreamworks-fpv| |DRNR|Shenzhen Zhimu Technology Co., Ltd|https://www.droneer.com| |DRRC|DroidRC|https://github.com/xiaoxiabub| |DYST|DongYang Smart Technology Co., Ltd (dys)|http://www.dys.hk/| -|DOLP|DolphinRC|https://www.dolphinrc.com/| |EACH|eachine|https://www.eachine.com/| |EASP|Ewing Aerospace|https://ewingaerospace.com/| |EMAX|EMAX|https://emaxmodel.com/| From 67232aaaa450ce6283c7a0d45a3cbbcaadd2cdf3 Mon Sep 17 00:00:00 2001 From: DolphinRC <53554809+DolphinRC@users.noreply.github.com> Date: Tue, 26 May 2026 19:43:25 +0800 Subject: [PATCH 9/9] Apply suggestions from code review Co-authored-by: Osiris Inferi --- configs/DOLPHINRC_F722/config.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configs/DOLPHINRC_F722/config.h b/configs/DOLPHINRC_F722/config.h index 8ba91b9fa..f87dd2183 100644 --- a/configs/DOLPHINRC_F722/config.h +++ b/configs/DOLPHINRC_F722/config.h @@ -77,10 +77,12 @@ TIMER_PIN_MAP(3, MOTOR4_PIN, 2, 0) \ TIMER_PIN_MAP(4, LED_STRIP_PIN, 2, 0) \ TIMER_PIN_MAP(5, GYRO_1_CLKIN_PIN, 2, -1) \ - TIMER_PIN_MAP(6, BEEPER_PIN, 1, -1) \ + TIMER_PIN_MAP(6, BEEPER_PIN, 1, -1) + #define ADC_INSTANCE ADC3 -#define ADC_DMA_OPT 1 +#define ADC3_DMA_OPT 1 #define BARO_I2C_INSTANCE I2CDEV_1 +#define MAG_I2C_INSTANCE I2CDEV_1 #define PINIO1_BOX 40 #define PINIO2_BOX 41 #define PINIO1_CONFIG 129 @@ -90,7 +92,6 @@ #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC -#define DEFAULT_VOLTAGE_METER_SCALE_DEFAULT 110 #define BEEPER_INVERTED #define LED0_INVERTED #define LED1_INVERTED