Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 3e587df

Browse files
authored
Update Packages_Patches
1 parent 51941fc commit 3e587df

File tree

4 files changed

+1033
-0
lines changed
  • Packages_Patches
    • Seeeduino/hardware/rp2040/1.9.3/variants/rpipico
    • arduino/hardware
      • mbed_portenta
        • 2.4.1/cores/arduino/mbed/connectivity/lwipstack/include/lwipstack
        • 2.5.2/cores/arduino/mbed/connectivity/lwipstack/include/lwipstack
      • samd/1.8.12

4 files changed

+1033
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#pragma once
2+
3+
// Pin definitions taken from:
4+
// https://datasheets.raspberrypi.org/pico/pico-datasheet.pdf
5+
6+
//KH
7+
// Pin count
8+
// ----
9+
#define PINS_COUNT (30u)
10+
#define NUM_DIGITAL_PINS (30u)
11+
#define NUM_ANALOG_INPUTS (4u)
12+
#define NUM_ANALOG_OUTPUTS (0u)
13+
//////
14+
15+
// LEDs
16+
#define PIN_LED (25u)
17+
#define PIN_LED_0 (16u)
18+
#define PIN_LED_1 (17u)
19+
#define PIN_LED_2 (18u)
20+
// Serial
21+
#define PIN_SERIAL1_TX (0u)
22+
#define PIN_SERIAL1_RX (1u)
23+
24+
#define PIN_SERIAL2_TX (31u)
25+
#define PIN_SERIAL2_RX (31u)
26+
27+
28+
// SPI
29+
#define PIN_SPI0_MISO (4u)
30+
#define PIN_SPI0_MOSI (3u)
31+
#define PIN_SPI0_SCK (2u)
32+
#define PIN_SPI0_SS (5u)
33+
34+
// static const int SS = PIN_SPI0_SS; // SPI Slave SS not used. Set here only for reference.
35+
// static const int MOSI = PIN_SPI0_MOSI;
36+
// static const int MISO = PIN_SPI0_MISO;
37+
// static const int SCK = PIN_SPI0_SCK;
38+
39+
#define PIN_SPI1_MISO (12u)
40+
#define PIN_SPI1_MOSI (31u)
41+
#define PIN_SPI1_SCK (31u)
42+
#define PIN_SPI1_SS (31u)
43+
// static const int MISO_1 = PIN_SPI1_MISO;
44+
45+
#define PIN_A0 (26u)
46+
#define PIN_A1 (27u)
47+
#define PIN_A2 (28u)
48+
#define PIN_A3 (29u)
49+
50+
static const int A0 = PIN_A0;
51+
static const int A1 = PIN_A1;
52+
static const int A2 = PIN_A2;
53+
static const int A3 = PIN_A3;
54+
55+
// D0 - D10
56+
#define D26 (26u)
57+
#define D1 (27u)
58+
#define D2 (28u)
59+
#define D3 (29u)
60+
#define D4 (6u)
61+
#define D5 (7u)
62+
#define D0 (0u)
63+
#define D7 (1u)
64+
#define D8 (2u)
65+
#define D9 (4u)
66+
#define D10 (3u)
67+
68+
// static const int 0 = D0;
69+
70+
// Wire
71+
#define PIN_WIRE0_SDA (6u)
72+
#define PIN_WIRE0_SCL (7u)
73+
74+
#define PIN_WIRE1_SDA (26u)
75+
#define PIN_WIRE1_SCL (27u)
76+
77+
// #define SERIAL_HOWMANY (3u)
78+
// #define SPI_HOWMANY (2u)
79+
// #define WIRE_HOWMANY (2u)
80+
81+
// #include "../generic/common.h"

0 commit comments

Comments
 (0)