mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-22 16:56:53 +00:00
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/
This commit is contained in:
parent
72dd5bd88d
commit
6094645f97
68
variants/GaulixLCrp2040V1b/pins_arduino.h
Normal file
68
variants/GaulixLCrp2040V1b/pins_arduino.h
Normal file
@ -0,0 +1,68 @@
|
||||
#pragma once
|
||||
|
||||
// Pin definitions taken from:
|
||||
// https://datasheets.raspberrypi.org/pico/pico-datasheet.pdf
|
||||
|
||||
static const uint8_t WB_IO1 = 22; // SLOT_A SLOT_B
|
||||
static const uint8_t WB_IO2 = 28; // SLOT_A SLOT_B
|
||||
static const uint8_t WB_IO3 = 10; // SLOT_C
|
||||
static const uint8_t WB_IO4 = 11; // SLOT_C
|
||||
static const uint8_t WB_IO5 = 7; // SLOT_D
|
||||
static const uint8_t WB_IO6 = 6; // SLOT_D
|
||||
static const uint8_t WB_A0 = 26; // IO_SLOT
|
||||
static const uint8_t WB_A1 = 27; // IO_SLOT
|
||||
|
||||
#define PIN_A0 (26u)
|
||||
#define PIN_A1 (27u)
|
||||
#define PIN_A2 (28u)
|
||||
#define PIN_A3 (29u)
|
||||
|
||||
static const uint8_t A0 = PIN_A0;
|
||||
static const uint8_t A1 = PIN_A1;
|
||||
static const uint8_t A2 = PIN_A2;
|
||||
static const uint8_t A3 = PIN_A3;
|
||||
|
||||
// LEDs
|
||||
#define PIN_LED (25u)
|
||||
#define PIN_LED1 PIN_LED
|
||||
#define PIN_LED2 (19u)
|
||||
#define LED_BUILTIN PIN_LED
|
||||
|
||||
#define ADC_RESOLUTION 12
|
||||
|
||||
// Serial
|
||||
#define PIN_SERIAL1_TX (0ul)
|
||||
#define PIN_SERIAL1_RX (1ul)
|
||||
|
||||
#define PIN_SERIAL2_TX (8ul)
|
||||
#define PIN_SERIAL2_RX (9ul)
|
||||
|
||||
// SPI
|
||||
#define PIN_SPI1_MISO (24u)
|
||||
#define PIN_SPI1_MOSI (15u)
|
||||
#define PIN_SPI1_SCK (14u)
|
||||
#define PIN_SPI1_SS (13u)
|
||||
|
||||
#define PIN_SPI0_MISO (4u)
|
||||
#define PIN_SPI0_MOSI (3u)
|
||||
#define PIN_SPI0_SCK (2u)
|
||||
#define PIN_SPI0_SS (5u)
|
||||
|
||||
// Wire
|
||||
#define PIN_WIRE0_SDA (20u)
|
||||
#define PIN_WIRE0_SCL (21u)
|
||||
|
||||
#define PIN_WIRE1_SDA (10u)
|
||||
#define PIN_WIRE1_SCL (11u)
|
||||
|
||||
#define SERIAL_HOWMANY (3u)
|
||||
#define SPI_HOWMANY (2u)
|
||||
#define WIRE_HOWMANY (2u)
|
||||
|
||||
static const uint8_t SS = PIN_SPI0_SS;
|
||||
static const uint8_t MOSI = PIN_SPI0_MOSI;
|
||||
static const uint8_t MISO = PIN_SPI0_MISO;
|
||||
static const uint8_t SCK = PIN_SPI0_SCK;
|
||||
|
||||
static const uint8_t SDA = PIN_WIRE0_SDA;
|
||||
static const uint8_t SCL = PIN_WIRE0_SCL;
|
Loading…
Reference in New Issue
Block a user