ESP32-PaxCounter/shared/hal/octopus32.h

51 lines
1.9 KiB
C
Raw Normal View History

2018-11-25 16:35:36 +01:00
// clang-format off
2019-06-30 17:48:24 +02:00
// upload_speed 921600
// board featheresp32
2018-11-25 16:35:36 +01:00
#ifndef _OCTOPUS_H
#define _OCTOPUS_H
#include <stdint.h>
// Hardware related definitions for #IoT Octopus32 with the Adafruit LoRaWAN Wing
// You can use this configuration also with the Adafruit ESP32 Feather + the LoRaWAN Wing
// In this config we use the Adafruit OLED Wing which is only 128x32 pixel, need to find a smaller font
2019-11-19 19:48:29 +01:00
// NOTE: if LORA_IRQ and LORA_IO1 are tied to the same GPIO using diodes on the board,
2019-11-19 15:44:55 +01:00
// you must disable LMIC_USE_INTERRUPTS in lmic_config.h
// disable brownout detection (avoid unexpected reset on some boards)
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
// Octopus32 has a pre-populated BME680 on i2c addr 0x76
2019-03-08 18:13:51 +01:00
#define HAS_BME 1 // Enable BME sensors in general
#define HAS_BME680 GPIO_NUM_23, GPIO_NUM_22 // SDA, SCL
2023-03-12 17:42:40 +01:00
#define BME680_ADDR BME68X_I2C_ADDR_LOW // connect SDIO of BME680 to GND
2018-11-25 16:05:30 +01:00
#define HAS_LED 13 // ESP32 GPIO12 (pin22) On Board LED
//#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
2022-10-31 16:56:48 +01:00
//#define RGB_LED_COUNT 1 // we have 1 LED
//#define HAS_RGB_LED FastLED.addLeds<WS2812, GPIO_NUM_13, GRB>(leds, RGB_LED_COUNT);
//#define HAS_BUTTON 15 // ESP32 GPIO15 (pin15) Button is on the LoraNode32 shield
//#define BUTTON_PULLUP 1 // Button need pullup instead of default pulldown
#define HAS_LORA 1 // comment out if device shall not send data via LoRa
#define CFG_sx1276_radio 1 // RFM95 module
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 (14)
#define LORA_MISO (19)
#define LORA_MOSI (18)
#define LORA_RST LMIC_UNUSED_PIN
#define LORA_IRQ (33)
#define LORA_IO1 (33)
#define LORA_IO2 LMIC_UNUSED_PIN
// Pins for I2C interface of OLED Display
2019-09-27 12:47:00 +02:00
#define HAS_DISPLAY 1
//#define MY_DISPLAY_FLIP 1 // uncomment this for rotated display
#define MY_DISPLAY_SDA (23)
#define MY_DISPLAY_SCL (22)
#define MY_DISPLAY_RST NOT_A_PIN
#endif