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
733aca5a
Unverified
Commit
733aca5a
authored
Jul 29, 2021
by
Pontus Oldberg
Committed by
GitHub
Jul 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds support for Challenger RP2040 WiFi boards (#268)
parent
177a2d03
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
511 additions
and
1 deletion
+511
-1
boards.txt
boards.txt
+439
-0
tools/makeboards.py
tools/makeboards.py
+1
-1
variants/challenger_2040_wifi/pins_arduino.h
variants/challenger_2040_wifi/pins_arduino.h
+71
-0
No files found.
boards.txt
View file @
733aca5a
This diff is collapsed.
Click to expand it.
tools/makeboards.py
View file @
733aca5a
...
...
@@ -143,4 +143,4 @@ MakeBoard("adafruit_macropad2040", "Adafruit", "MacroPad RP2040", "0x239a", "0x8
MakeBoard
(
"arduino_nano_connect"
,
"Arduino"
,
"Nano RP2040 Connect"
,
"0x2341"
,
"0x0058"
,
"ARDUINO_NANO_RP2040_CONNECT"
,
16
,
"boot2_w25q080_2_padded_checksum"
)
MakeBoard
(
"sparkfun_promicrorp2040"
,
"SparkFun"
,
"ProMicro RP2040"
,
"0x1b4f"
,
"0x0026"
,
"SPARKFUN_PROMICRO_RP2040"
,
16
,
"boot2_generic_03h_4_padded_checksum"
)
MakeBoard
(
"generic"
,
"Generic"
,
"RP2040"
,
"0x2e8a"
,
"0xf00a"
,
"GENERIC_RP2040"
,
16
,
"boot2_generic_03h_4_padded_checksum"
)
MakeBoard
(
"challenger_2040_wifi"
,
"iLabs"
,
"Challenger 2040 WiFi"
,
"0x2e8a"
,
"0x1006"
,
"CHALLENGER_2040_WIFI_RP2040"
,
8
,
"boot2_w25q080_4_padded_checksum"
)
variants/challenger_2040_wifi/pins_arduino.h
0 → 100644
View file @
733aca5a
#pragma once
#define PINS_COUNT (24u)
#define NUM_DIGITAL_PINS (24u)
#define NUM_ANALOG_INPUTS (4u)
#define NUM_ANALOG_OUTPUTS (0u)
#define ADC_RESOLUTION (12u)
// LEDs
#define PIN_LED (12u)
// Serial
#define PIN_SERIAL1_TX (16u)
#define PIN_SERIAL1_RX (17u)
// Connected to ESP8285
#define PIN_SERIAL2_TX (4u)
#define PIN_SERIAL2_RX (5u)
// SPI
#define PIN_SPI0_MISO (24u)
#define PIN_SPI0_MOSI (23u)
#define PIN_SPI0_SCK (22u)
#define PIN_SPI0_SS (21u)
// Not pinned out
#define PIN_SPI1_MISO (31u)
#define PIN_SPI1_MOSI (31u)
#define PIN_SPI1_SCK (31u)
#define PIN_SPI1_SS (31u)
// Wire
#define PIN_WIRE0_SDA (0u)
#define PIN_WIRE0_SCL (1u)
// Not pinned out
#define PIN_WIRE1_SDA (31u)
#define PIN_WIRE1_SCL (31u)
#define SERIAL_HOWMANY (2u)
#define SPI_HOWMANY (1u)
#define WIRE_HOWMANY (1u)
#define LED_BUILTIN PIN_LED
#define NEOPIXEL (11u)
static
const
uint8_t
D0
=
(
16u
);
static
const
uint8_t
D1
=
(
17u
);
static
const
uint8_t
D2
=
(
24u
);
static
const
uint8_t
D3
=
(
23u
);
static
const
uint8_t
D4
=
(
22u
);
static
const
uint8_t
D5
=
(
2u
);
static
const
uint8_t
D6
=
(
3u
);
static
const
uint8_t
D7
=
(
0u
);
static
const
uint8_t
D8
=
(
1u
);
static
const
uint8_t
D9
=
(
6u
);
static
const
uint8_t
D10
=
(
7u
);
static
const
uint8_t
D11
=
(
8u
);
static
const
uint8_t
D12
=
(
9u
);
static
const
uint8_t
D13
=
(
10u
);
static
const
uint8_t
D14
=
(
11u
);
static
const
uint8_t
D15
=
(
12u
);
static
const
uint8_t
D16
=
(
13u
);
static
const
uint8_t
D17
=
(
19u
);
static
const
uint8_t
A0
=
(
26u
);
static
const
uint8_t
A1
=
(
27u
);
static
const
uint8_t
A2
=
(
28u
);
static
const
uint8_t
A3
=
(
29u
);
static
const
uint8_t
A4
=
(
25u
);
static
const
uint8_t
A5
=
(
21u
);
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