mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Added default temperature from ESP32 MCU and NRF52 MCU
Added NRF52Board.h and NRF52Board.cpp Modified NRF52 variants to extend from NRF52Board to share common feature
This commit is contained in:
parent
9bba417ebc
commit
4504ad4daf
24 changed files with 86 additions and 19 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <MeshCore.h>
|
||||
#include <Arduino.h>
|
||||
#include <helpers/NRF52Board.h>
|
||||
|
||||
// built-ins
|
||||
#define VBAT_MV_PER_LSB (0.73242188F) // 3.0V ADC range and 12-bit ADC resolution = 3000mV/4096
|
||||
|
|
@ -12,7 +13,7 @@
|
|||
#define PIN_VBAT_READ (4)
|
||||
#define REAL_VBAT_MV_PER_LSB (VBAT_DIVIDER_COMP * VBAT_MV_PER_LSB)
|
||||
|
||||
class ThinkNodeM1Board : public mesh::MainBoard {
|
||||
class ThinkNodeM1Board : public NRF52Board {
|
||||
protected:
|
||||
uint8_t startup_reason;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue