Skip to content

Commit

Permalink
Modify pin number for A10 to match hardware; add C6 definition for re…
Browse files Browse the repository at this point in the history
…set line (#36)
  • Loading branch information
jayzakk authored Sep 20, 2020
1 parent b497d66 commit 6a52499
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lgt8f/variants/lgt8fx8p/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 13 additions & 6 deletions lgt8f/variants/standard/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -330,6 +335,7 @@ const uint8_t PROGMEM digital_pin_to_port_PGM[] = {
PE, /* 24 */
PE, /* 25 */
PE, /* 26 */
PC, /* 27 */
#endif
#endif
};
Expand Down Expand Up @@ -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
};
Expand Down

0 comments on commit 6a52499

Please sign in to comment.