ESP32-PaxCounter/shared/hal/eboxtube.h

32 lines
886 B
C
Raw Permalink Normal View History

2018-11-25 16:35:36 +01:00
// clang-format off
2019-10-04 14:47:58 +02:00
// upload_speed 921600
2019-06-30 17:48:24 +02:00
// board esp32dev
2018-11-25 16:35:36 +01:00
#ifndef _EBOXTUBE_H
#define _EBOXTUBE_H
#include <stdint.h>
// Hardware related definitions for ebox ESP32-bit with external connected RFM95 LoRa
#define HAS_LORA 1 // comment out if device shall not send data via LoRa
#define CFG_sx1276_radio 1
#define HAS_LED (22) // Green LED on board
#define RGB_LED_COUNT 1 // we have 1 LED
2022-10-31 16:56:48 +01:00
#define HAS_RGB_LED FastLED.addLeds<WS2812, GPIO_NUM_2, GRB>(leds, RGB_LED_COUNT);
#define HAS_BUTTON (0) // button "FLASH" on board
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
2018-10-21 22:24:45 +02:00
// Pins for LORA chip SPI interface, reset line and interrupt lines
#define LORA_SCK (5)
#define LORA_CS (18)
#define LORA_MISO (19)
#define LORA_MOSI (27)
#define LORA_RST (14)
#define LORA_IRQ (26)
#define LORA_IO1 (33)
#define LORA_IO2 (32)
#endif