diff --git a/lgt8f/variants/lgt8fx8p/pins_arduino.h b/lgt8f/variants/lgt8fx8p/pins_arduino.h index 150ed3c..51063ad 100755 --- a/lgt8f/variants/lgt8fx8p/pins_arduino.h +++ b/lgt8f/variants/lgt8fx8p/pins_arduino.h @@ -35,6 +35,6 @@ static const uint8_t DAC0 = 4; #include "../standard/pins_arduino.h" #undef NUM_ANALOG_INPUTS -#define NUM_ANALOG_INPUTS 8 +#define NUM_ANALOG_INPUTS 10 #endif diff --git a/lgt8f/variants/standard/pins_arduino.h b/lgt8f/variants/standard/pins_arduino.h index b739609..95b349a 100755 --- a/lgt8f/variants/standard/pins_arduino.h +++ b/lgt8f/variants/standard/pins_arduino.h @@ -98,6 +98,10 @@ static const uint8_t A9 = 24; static const uint8_t A10 = 25; static const uint8_t A11 = 26; #endif +#if defined(__LGT8FX8P__) +static const uint8_t A10 = 25; +#define PIN_A10 (25) +#endif #endif #define D0 0 /* PD0 */ @@ -175,14 +179,15 @@ static const uint8_t A11 = 26; #define E0 22 #define E2 23 #define E4 24 -#define E5 25 -#define E6 26 +#define E5 26 +#define E6 25 #define D22 22 /* PE0 */ #define D23 23 /* PE2 */ #define D24 24 /* PE4 */ -#define D25 25 /* PE5 */ -#define D26 26 /* PE6 */ +#define D25 26 /* PE5 */ +#define D26 25 /* PE6 */ +#define C6 27 /* PC6 */ #endif #endif @@ -330,6 +335,7 @@ const uint8_t PROGMEM digital_pin_to_port_PGM[] = { PE, /* 24 */ PE, /* 25 */ PE, /* 26 */ + PC, /* 27 */ #endif #endif }; @@ -381,8 +387,9 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[] = { _BV(0), /* 22, port E0 */ _BV(2), /* 23, port E2 */ _BV(4), /* 24, port E4 */ - _BV(5), /* 25, port E5 */ - _BV(6), /* 26, port E6 */ + _BV(5), /* 26, port E5 */ + _BV(6), /* 25, port E6 */ + _BV(6), /* 27, port C6 */ #endif #endif };