new board olimex-poe added
This commit is contained in:
parent
cdf60c6df9
commit
cfb40d300c
@ -33,6 +33,7 @@ halfile = generic.h
|
|||||||
;halfile = tinypicomatrix.h
|
;halfile = tinypicomatrix.h
|
||||||
;halfile = m5core.h
|
;halfile = m5core.h
|
||||||
;halfile = m5fire.h
|
;halfile = m5fire.h
|
||||||
|
;halfile = olimexpoe.h
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
; upload firmware to board with usb cable
|
; upload firmware to board with usb cable
|
||||||
@ -58,11 +59,13 @@ monitor_speed = 115200
|
|||||||
upload_speed = 115200 ; set by build.py and taken from hal file
|
upload_speed = 115200 ; set by build.py and taken from hal file
|
||||||
display_library = ; set by build.py and taken from hal file
|
display_library = ; set by build.py and taken from hal file
|
||||||
lib_deps_lora =
|
lib_deps_lora =
|
||||||
MCCI LoRaWAN LMIC library@3.1.0 ; MCCI LMIC by Terrill Moore
|
https://github.com/mcci-catena/arduino-lmic.git
|
||||||
|
;MCCI LoRaWAN LMIC library@3.1.0 ; MCCI LMIC by Terrill Moore
|
||||||
lib_deps_display =
|
lib_deps_display =
|
||||||
|
OneBitDisplay@1.3.0
|
||||||
QRCode@0.0.1
|
QRCode@0.0.1
|
||||||
lib_deps_oled_display =
|
lib_deps_oled_display =
|
||||||
ss_oled@4.1.3 ; fast and small OLED lib by Larry Bank
|
OneBitDisplay@1.3.0
|
||||||
BitBang_I2C@2.1.1
|
BitBang_I2C@2.1.1
|
||||||
lib_deps_tft_display =
|
lib_deps_tft_display =
|
||||||
TFT_eSPI@2.2.4
|
TFT_eSPI@2.2.4
|
||||||
@ -83,8 +86,7 @@ lib_deps_basic =
|
|||||||
76@>=1.2.4 ; #76 Timezone by Jack Christensen
|
76@>=1.2.4 ; #76 Timezone by Jack Christensen
|
||||||
274@>=2.3.4 ; #274 RTC by Michael Miller
|
274@>=2.3.4 ; #274 RTC by Michael Miller
|
||||||
SimpleButton
|
SimpleButton
|
||||||
;AXP202X_Library@>=1.1.0 ; AXP202 PMU lib by Lewis He
|
AXP202X_Library@>=1.1.1 ; AXP202 PMU lib by Lewis He
|
||||||
https://github.com/lewisxhe/AXP202X_Library.git
|
|
||||||
esp32-micro-sdcard
|
esp32-micro-sdcard
|
||||||
lib_deps_all =
|
lib_deps_all =
|
||||||
${common.lib_deps_basic}
|
${common.lib_deps_basic}
|
||||||
@ -115,7 +117,7 @@ framework = arduino
|
|||||||
board = esp32dev
|
board = esp32dev
|
||||||
board_build.partitions = min_spiffs.csv
|
board_build.partitions = min_spiffs.csv
|
||||||
upload_speed = ${common.upload_speed}
|
upload_speed = ${common.upload_speed}
|
||||||
;upload_port = COM5
|
;upload_port = COM8
|
||||||
platform = ${common.platform_espressif32}
|
platform = ${common.platform_espressif32}
|
||||||
lib_deps = ${common.lib_deps_all}
|
lib_deps = ${common.lib_deps_all}
|
||||||
build_flags = ${common.build_flags_all}
|
build_flags = ${common.build_flags_all}
|
||||||
|
40
src/hal/olimexpoe.h
Normal file
40
src/hal/olimexpoe.h
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
// clang-format off
|
||||||
|
// upload_speed 921600
|
||||||
|
// board esp32dev
|
||||||
|
// display_library lib_deps_oled_display
|
||||||
|
|
||||||
|
#ifndef _GENERIC_H
|
||||||
|
#define _GENERIC_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
// i2c bus definitions
|
||||||
|
#define MY_DISPLAY_SDA (13)
|
||||||
|
#define MY_DISPLAY_SCL (16)
|
||||||
|
|
||||||
|
// enable only if you want to store a local paxcount table on the device
|
||||||
|
#define HAS_SDCARD 1 // this board has an SD-card-reader/writer
|
||||||
|
// Pins for SD-card
|
||||||
|
#define SDCARD_CS (13)
|
||||||
|
#define SDCARD_MOSI (15)
|
||||||
|
#define SDCARD_MISO (2)
|
||||||
|
#define SDCARD_SCLK (14)
|
||||||
|
|
||||||
|
// user defined sensors
|
||||||
|
#define HAS_SENSORS 1 // comment out if device has user defined sensors
|
||||||
|
|
||||||
|
//#define BOARD_HAS_PSRAM // use if board has external PSRAM
|
||||||
|
#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
|
||||||
|
#define BAT_MEASURE_ADC ADC1_GPIO39_CHANNEL // external power probe GPIO pin
|
||||||
|
#define BAT_VOLTAGE_DIVIDER 2.1277f // voltage divider 47k/442k on board
|
||||||
|
|
||||||
|
#define EXT_POWER_SW GPIO_NUM_12 // switches PoE power, Vext control 0 = off / 1 = on
|
||||||
|
#define EXT_POWER_ON 1
|
||||||
|
//#define EXT_POWER_OFF 1
|
||||||
|
|
||||||
|
#define HAS_BUTTON (34) // on board button
|
||||||
|
#define HAS_LED NOT_A_PIN // no on board LED
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user