ESP32-PaxCounter/src/hal/olimexpoeiso.h

27 lines
907 B
C
Raw Normal View History

2020-05-15 18:00:07 +02:00
// clang-format off
// upload_speed 921600
2020-05-16 15:30:45 +02:00
// board esp32-poe-iso
2020-05-15 18:00:07 +02:00
2020-05-16 15:30:45 +02:00
#ifndef _OLIMEXPOEISO_H
#define _OLIMEXPOEISO_H
2020-05-15 18:00:07 +02:00
#include <stdint.h>
// enable only if you want to store a local paxcount table on the device
2020-05-16 15:30:45 +02:00
#define HAS_SDCARD 2 // this board has an SD-card-reader/writer
2020-05-15 18:00:07 +02:00
2020-05-16 23:49:34 +02:00
// enable only if you want to send paxcount via ethernet port to mqtt server
#define HAS_MQTT 1 // use MQTT on ethernet interface
2020-05-15 18:00:07 +02:00
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
//#define BAT_MEASURE_ADC ADC1_GPIO35_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_7
2020-05-16 23:49:34 +02:00
//#define BAT_VOLTAGE_DIVIDER 2 // voltage divider 470k/470k on board
2020-05-15 18:00:07 +02:00
#define BAT_MEASURE_ADC ADC1_GPIO39_CHANNEL // external power probe GPIO pin
#define BAT_VOLTAGE_DIVIDER 2.1277f // voltage divider 47k/442k on board
2020-05-16 15:30:45 +02:00
#define HAS_BUTTON KEY_BUILTIN // on board button
2020-05-15 18:00:07 +02:00
#define HAS_LED NOT_A_PIN // no on board LED
#endif