#ifndef _HARDWARE_H
#define _HARDWARE_H

/* pin assignments */
// LED_BUILTIN = 2
// KEY_BUILTIN = 0
static constexpr uint8_t buttonPin = 0;
static constexpr uint8_t sensorPin = 0;
static constexpr uint8_t rotaryPinA = 39;
static constexpr uint8_t rotaryPinB = 38;
static constexpr uint8_t rotaryPinButton = 17;
static constexpr uint8_t ext_wakeup_pin_1 = 0;
static constexpr uint8_t ext_wakeup_pin_2 = 0;

static constexpr uint32_t secondsToSleep = 3600;


/* Wiring (Heltec OLED Lora)
 *              GND O                    O GND
 *               5V O                    O 5V
 *              3V3 O                    O 3V3
 *              GND O                    < 36           only input, no pullups
 *               RX * (3)                < 37           only input, no pullups
 *               TX * (1)                < 38 ROTARY_A  only input, no pullups
 *              RST * BUTTON             < 39 ROTARY_B  only input, no pullups
 *                0 * KEY_BUILTIN        < 34           only input, no pullups
 *               22 * ?                  < 35           only input, no pullups
 * BME280_SDO    19 * LoRa_MISO       ?  * 32
 * BME280_CS     23 *                 ?  * 33
 *               18 x LoRa_CS            * 25 MAX98_DIN
 * BME280_SCL/SCK 5 * LoRa_SCK  LoRa_IRQ * 26
 *               15 * OLED_SCL LoRa_MOSI * 27 BME280_SDA/SDI
 *                2 * LED_B     LoRa_RST * 14
 *                4 * OLED_SDA           * 12 MAX98_BCLK
 *    ROTARY_BTN 17 *                    * 13 MAX98_LRC
 *               16 * OLED_RST           * 21 WS2812B_DATA(?)
 */

/* Rotary Encoder
 *           1 LED
 * pinA A    2 LED         pinA und PinB mit externen Pullups
 * GND  C    3 BTN -|
 * pinB B    4 LED   /
 *           5 Vin -|	
 */


#endif /* _HARDWARE_H */