Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
5b270aab
Unverified
Commit
5b270aab
authored
Dec 30, 2021
by
Ken Piper
Committed by
GitHub
Dec 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix A0-A3 pin definitions for Adafruit QT Py RP2040 (#397)
parent
6591da9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
variants/adafruit_qtpy/pins_arduino.h
variants/adafruit_qtpy/pins_arduino.h
+6
-0
variants/generic/common.h
variants/generic/common.h
+23
-4
No files found.
variants/adafruit_qtpy/pins_arduino.h
View file @
5b270aab
...
...
@@ -38,4 +38,10 @@
#define SPI_HOWMANY (1u)
#define WIRE_HOWMANY (2u)
// Pin overrides specific to the QT Py RP2040
#define __PIN_A0 (29u)
#define __PIN_A1 (28u)
#define __PIN_A2 (27u)
#define __PIN_A3 (26u)
#include "../generic/common.h"
variants/generic/common.h
View file @
5b270aab
...
...
@@ -39,10 +39,29 @@ static const uint8_t D27 = (27u);
static
const
uint8_t
D28
=
(
28u
);
static
const
uint8_t
D29
=
(
29u
);
static
const
uint8_t
A0
=
(
26u
);
static
const
uint8_t
A1
=
(
27u
);
static
const
uint8_t
A2
=
(
28u
);
static
const
uint8_t
A3
=
(
29u
);
#ifdef __PIN_A0
static
const
uint8_t
A0
=
__PIN_A0
;
#else
static
const
uint8_t
A0
=
(
26u
);
#endif
#ifdef __PIN_A1
static
const
uint8_t
A1
=
__PIN_A1
;
#else
static
const
uint8_t
A1
=
(
27u
);
#endif
#ifdef __PIN_A2
static
const
uint8_t
A2
=
__PIN_A2
;
#else
static
const
uint8_t
A2
=
(
28u
);
#endif
#ifdef __PIN_A3
static
const
uint8_t
A3
=
__PIN_A3
;
#else
static
const
uint8_t
A3
=
(
29u
);
#endif
static
const
uint8_t
SS
=
PIN_SPI0_SS
;
static
const
uint8_t
MOSI
=
PIN_SPI0_MOSI
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment