rusefillc 2022-01-16 14:51:26 -05:00
parent fffff42bef
commit e4d33d9740
2 changed files with 5 additions and 3 deletions

View File

@ -34,13 +34,13 @@ void setHellen176LedPins() {
// this should be called before setHellenXXXLedPins()
void detectHellenBoardType() {
// we test the LED1 pin because the red LED used has the smallest voltage drop,
// we test the red LED1 pin because the red LED used has the smallest voltage drop,
// and thus can be detected more accurately
static const brain_pin_e led1Pins[2] = {
// LED1 pin of the 176-pin mcu module (we check it first!)
GPIOH_8,
H176_LED1_RED,
// LED1 pin of the 144-pin mcu module
GPIOG_0,
H144_LED1_RED,
};
int padState[2];
// check each mcu module type sequentially

View File

@ -15,6 +15,8 @@ void setHellen176LedPins();
void detectHellenBoardType();
#define H144_LED1_RED GPIOG_0
#define H176_LED1_RED GPIOH_8
#define H144_LS_1 GPIOG_7
#define H144_LS_2 GPIOG_8