Skip to content

Commit 35d60f1

Browse files
authored
Create pins_arduino.h
in France we make with our community Gaulix base on your project our harrdware https://gaulix.fr/carte-gaulix-low-cost-30dbm/
1 parent 74b3dc3 commit 35d60f1

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#pragma once
2+
3+
// Pin definitions taken from:
4+
// https://datasheets.raspberrypi.org/pico/pico-datasheet.pdf
5+
6+
static const uint8_t WB_IO1 = 22; // SLOT_A SLOT_B
7+
static const uint8_t WB_IO2 = 28; // SLOT_A SLOT_B
8+
static const uint8_t WB_IO3 = 10; // SLOT_C
9+
static const uint8_t WB_IO4 = 11; // SLOT_C
10+
static const uint8_t WB_IO5 = 7; // SLOT_D
11+
static const uint8_t WB_IO6 = 6; // SLOT_D
12+
static const uint8_t WB_A0 = 26; // IO_SLOT
13+
static const uint8_t WB_A1 = 27; // IO_SLOT
14+
15+
#define PIN_A0 (26u)
16+
#define PIN_A1 (27u)
17+
#define PIN_A2 (28u)
18+
#define PIN_A3 (29u)
19+
20+
static const uint8_t A0 = PIN_A0;
21+
static const uint8_t A1 = PIN_A1;
22+
static const uint8_t A2 = PIN_A2;
23+
static const uint8_t A3 = PIN_A3;
24+
25+
// LEDs
26+
#define PIN_LED (25u)
27+
#define PIN_LED1 PIN_LED
28+
#define PIN_LED2 (19u)
29+
#define LED_BUILTIN PIN_LED
30+
31+
#define ADC_RESOLUTION 12
32+
33+
// Serial
34+
#define PIN_SERIAL1_TX (0ul)
35+
#define PIN_SERIAL1_RX (1ul)
36+
37+
#define PIN_SERIAL2_TX (8ul)
38+
#define PIN_SERIAL2_RX (9ul)
39+
40+
// SPI
41+
#define PIN_SPI1_MISO (24u)
42+
#define PIN_SPI1_MOSI (15u)
43+
#define PIN_SPI1_SCK (14u)
44+
#define PIN_SPI1_SS (13u)
45+
46+
#define PIN_SPI0_MISO (4u)
47+
#define PIN_SPI0_MOSI (3u)
48+
#define PIN_SPI0_SCK (2u)
49+
#define PIN_SPI0_SS (5u)
50+
51+
// Wire
52+
#define PIN_WIRE0_SDA (20u)
53+
#define PIN_WIRE0_SCL (21u)
54+
55+
#define PIN_WIRE1_SDA (10u)
56+
#define PIN_WIRE1_SCL (11u)
57+
58+
#define SERIAL_HOWMANY (3u)
59+
#define SPI_HOWMANY (2u)
60+
#define WIRE_HOWMANY (2u)
61+
62+
static const uint8_t SS = PIN_SPI0_SS;
63+
static const uint8_t MOSI = PIN_SPI0_MOSI;
64+
static const uint8_t MISO = PIN_SPI0_MISO;
65+
static const uint8_t SCK = PIN_SPI0_SCK;
66+
67+
static const uint8_t SDA = PIN_WIRE0_SDA;
68+
static const uint8_t SCL = PIN_WIRE0_SCL;

0 commit comments

Comments
 (0)