mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 11:02:16 +00:00
w/e
This commit is contained in:
parent
a421edce49
commit
e2e7658789
@ -34,7 +34,8 @@
|
|||||||
#include "WVariant.h"
|
#include "WVariant.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C"
|
||||||
|
{
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|
||||||
// Number of pins defined in PinDescription array
|
// Number of pins defined in PinDescription array
|
||||||
@ -55,7 +56,7 @@ extern "C" {
|
|||||||
|
|
||||||
#define LED_STATE_ON 1 // State when LED is litted
|
#define LED_STATE_ON 1 // State when LED is litted
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Buttons
|
* Buttons
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -77,14 +78,14 @@ extern "C" {
|
|||||||
#define PIN_A6 (0xff)
|
#define PIN_A6 (0xff)
|
||||||
#define PIN_A7 (0xff)
|
#define PIN_A7 (0xff)
|
||||||
|
|
||||||
static const uint8_t A0 = PIN_A0;
|
static const uint8_t A0 = PIN_A0;
|
||||||
static const uint8_t A1 = PIN_A1;
|
static const uint8_t A1 = PIN_A1;
|
||||||
static const uint8_t A2 = PIN_A2;
|
static const uint8_t A2 = PIN_A2;
|
||||||
static const uint8_t A3 = PIN_A3;
|
static const uint8_t A3 = PIN_A3;
|
||||||
static const uint8_t A4 = PIN_A4;
|
static const uint8_t A4 = PIN_A4;
|
||||||
static const uint8_t A5 = PIN_A5;
|
static const uint8_t A5 = PIN_A5;
|
||||||
static const uint8_t A6 = PIN_A6;
|
static const uint8_t A6 = PIN_A6;
|
||||||
static const uint8_t A7 = PIN_A7;
|
static const uint8_t A7 = PIN_A7;
|
||||||
#define ADC_RESOLUTION 14
|
#define ADC_RESOLUTION 14
|
||||||
|
|
||||||
// Other pins
|
// Other pins
|
||||||
@ -92,7 +93,7 @@ static const uint8_t A7 = PIN_A7;
|
|||||||
#define PIN_NFC1 (9)
|
#define PIN_NFC1 (9)
|
||||||
#define PIN_NFC2 (10)
|
#define PIN_NFC2 (10)
|
||||||
|
|
||||||
static const uint8_t AREF = PIN_AREF;
|
static const uint8_t AREF = PIN_AREF;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Serial interfaces
|
* Serial interfaces
|
||||||
@ -117,12 +118,12 @@ static const uint8_t AREF = PIN_AREF;
|
|||||||
#define PIN_SPI1_MOSI (30) // (0 + 30)
|
#define PIN_SPI1_MOSI (30) // (0 + 30)
|
||||||
#define PIN_SPI1_SCK (3) // (0 + 3)
|
#define PIN_SPI1_SCK (3) // (0 + 3)
|
||||||
|
|
||||||
static const uint8_t SS = 42;
|
static const uint8_t SS = 42;
|
||||||
static const uint8_t MOSI = PIN_SPI_MOSI;
|
static const uint8_t MOSI = PIN_SPI_MOSI;
|
||||||
static const uint8_t MISO = PIN_SPI_MISO;
|
static const uint8_t MISO = PIN_SPI_MISO;
|
||||||
static const uint8_t SCK = PIN_SPI_SCK;
|
static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* eink display pins
|
* eink display pins
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -136,7 +137,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
|
|||||||
|
|
||||||
// Controls power for the eink display - Board power is enabled either by VBUS from USB or the CPU asserting PWR_ON
|
// Controls power for the eink display - Board power is enabled either by VBUS from USB or the CPU asserting PWR_ON
|
||||||
// FIXME - I think this is actually just the board power enable - it enables power to the CPU also
|
// FIXME - I think this is actually just the board power enable - it enables power to the CPU also
|
||||||
//#define PIN_EINK_PWR_ON (-1)
|
// #define PIN_EINK_PWR_ON (-1)
|
||||||
|
|
||||||
// #define USE_EINK
|
// #define USE_EINK
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user