lolin32 board added
This commit is contained in:
parent
32d41c7c3c
commit
a4842d54f1
@ -22,6 +22,7 @@ env_default = generic
|
||||
;env_default = fipy
|
||||
;env_default = lolin32litelora
|
||||
;env_default = lolin32lora
|
||||
;env_default = lolin32
|
||||
;
|
||||
description = Paxcounter is a proof-of-concept ESP32 device for metering passenger flows in realtime. It counts how many mobile devices are around.
|
||||
|
||||
@ -188,6 +189,19 @@ lib_deps =
|
||||
build_flags =
|
||||
${common_env_data.build_flags}
|
||||
|
||||
[env:lolin32]
|
||||
platform = ${common_env_data.platform_espressif32}
|
||||
framework = arduino
|
||||
board = lolin32
|
||||
board_build.partitions = ${common_env_data.board_build.partitions}
|
||||
upload_speed = 921600
|
||||
monitor_speed = 115200
|
||||
lib_deps =
|
||||
${common_env_data.lib_deps_all}
|
||||
${common_env_data.lib_deps_rgbled}
|
||||
build_flags =
|
||||
${common_env_data.build_flags}
|
||||
|
||||
[env:generic]
|
||||
platform = ${common_env_data.platform_espressif32}
|
||||
framework = arduino
|
||||
|
14
src/hal/lolin32.h
Normal file
14
src/hal/lolin32.h
Normal file
@ -0,0 +1,14 @@
|
||||
// Hardware related definitions for lolin32 (without LoRa shield)
|
||||
|
||||
// disable brownout detection (avoid unexpected reset on some boards)
|
||||
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
||||
|
||||
#define HAS_LED NOT_A_PIN // Led os on same pin as Lora SS pin, to avoid problems, we don't use it
|
||||
#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
||||
#define HAS_RGB_LED 13 // ESP32 GPIO13 (pin13) On Board Shield WS2812B RGB LED
|
||||
|
||||
#define HAS_SPI 1 // comment out if device shall not send data via SPI
|
||||
|
||||
// I2C config for Microchip 24AA02E64 DEVEUI unique address
|
||||
#define MCP_24AA02E64_I2C_ADDRESS 0x50 // I2C address for the 24AA02E64
|
||||
#define MCP_24AA02E64_MAC_ADDRESS 0xF8 // Memory adress of unique deveui 64 bits
|
Loading…
Reference in New Issue
Block a user