|
@ -16,7 +16,7 @@ static constexpr uint8_t PROGMEM NUM_LEDS = 10; |
|
|
static constexpr uint8_t ext_wakeup_pin_1 = 0; |
|
|
static constexpr uint8_t ext_wakeup_pin_1 = 0; |
|
|
static constexpr uint8_t ext_wakeup_pin_2 = 0; |
|
|
static constexpr uint8_t ext_wakeup_pin_2 = 0; |
|
|
|
|
|
|
|
|
static constexpr uint32_t secondsToSleep = 3600; |
|
|
static constexpr uint32_t secondsToSleep = 30*60; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Wiring (Heltec OLED Lora)
|
|
|
/* Wiring (Heltec OLED Lora)
|
|
@ -34,18 +34,35 @@ static constexpr uint32_t secondsToSleep = 3600; |
|
|
* 18 x LoRa_CS * 25 MAX98_DIN |
|
|
* 18 x LoRa_CS * 25 MAX98_DIN |
|
|
* BME280_SCL/SCK 5 * LoRa_SCK LoRa_IRQ * 26 |
|
|
* BME280_SCL/SCK 5 * LoRa_SCK LoRa_IRQ * 26 |
|
|
* 15 * OLED_SCL LoRa_MOSI * 27 BME280_SDA/SDI |
|
|
* 15 * OLED_SCL LoRa_MOSI * 27 BME280_SDA/SDI |
|
|
* 2 * LED_B LoRa_RST * 14 |
|
|
* ROTARY_BTN 2 * LED_B LoRa_RST * 14 |
|
|
* 4 * OLED_SDA * 12 MAX98_BCLK |
|
|
* 4 * OLED_SDA * 12 MAX98_BCLK |
|
|
* ROTARY_BTN 17 * * 13 MAX98_LRC |
|
|
* 17 * * 13 MAX98_LRC |
|
|
* 16 * OLED_RST * 21 WS2812B_DATA(?) |
|
|
* 16 * OLED_RST * 21 WS2812B_DATA(?) |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
/* Rotary Encoder
|
|
|
/* Rotary Encoder
|
|
|
* 1 LED |
|
|
* 1 LED |
|
|
* pinA A 2 LED pinA und PinB mit externen Pullups |
|
|
* pinA A 2 LED pinA und PinB mit zusätzlichen externen Pullups |
|
|
* GND C 3 BTN -| |
|
|
* GND C 3 BTN -| --ROTARY_BTN |
|
|
* pinB B 4 LED / |
|
|
* pinB B 4 LED / |
|
|
* 5 Vin -| |
|
|
* 5 Vin -| --R?--3V3 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/* load-shedding idea: +5V
|
|
|
|
|
|
* | |
|
|
|
|
|
* ---R2(1k)------| |
|
|
|
|
|
* | | |
|
|
|
|
|
* o------------|--| Q2 |
|
|
|
|
|
* | |>-° P-Channel MOSFET |
|
|
|
|
|
* | |-- IRF9350 / SUP75P03-07-E3 |
|
|
|
|
|
* |/ T1 | |
|
|
|
|
|
* gpio ---R1(10k)---| 2N2904 ---- LED/AMP Power 5V |
|
|
|
|
|
* |\ |
|
|
|
|
|
* v |
|
|
|
|
|
* | |
|
|
|
|
|
* GND |
|
|
|
|
|
* (https://www.pjrc.com/teensy/td_libs_OctoWS2811.html)
|
|
|
|
|
|
* (https://learn.adafruit.com/rgb-led-strips/usage) (IRLB8721 N-Channel)
|
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|