Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify pin number for A10 to match hardware; add C6 definition for re… #36

Merged
merged 1 commit into from
Sep 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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