mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 07:26:38 +02:00
* set default pinout to Wemos D1mini
* pinout will be saved in eeprom, but changes not applied for now
This commit is contained in:
parent
9e6cae26a7
commit
a95069e65c
10 changed files with 107 additions and 35 deletions
|
@ -9,14 +9,19 @@
|
|||
|
||||
#include "CircularBuffer.h"
|
||||
#include "hmSystem.h"
|
||||
|
||||
#include "mqtt.h"
|
||||
|
||||
|
||||
typedef HmRadio<RF24_CE_PIN, RF24_CS_PIN, RF24_IRQ_PIN> RadioType;
|
||||
typedef CircularBuffer<packet_t, PACKET_BUFFER_SIZE> BufferType;
|
||||
typedef HmSystem<RadioType, BufferType, MAX_NUM_INVERTERS, float> HmSystemType;
|
||||
|
||||
const char* const wemosPins[] = {"D3 (GPIO0)", "TX (GPIO1)", "D4 (GPIO2)", "RX (GPIO3)",
|
||||
"D2 (GPIO4)", "D1 (GPIO5)", "GPIO6", "GPIO7", "GPIO8",
|
||||
"GPIO9", "GPIO10", "GPIO11", "D6 (GPIO12)", "D7 (GPIO13)",
|
||||
"D5 (GPIO14)", "D8 (GPIO15)", "D0 (GPIO16)"};
|
||||
const char* const pinNames[] = {"CS", "CE", "IRQ"};
|
||||
const char* const pinArgNames[] = {"pinCs", "pinCe", "pinIrq"};
|
||||
|
||||
class app : public Main {
|
||||
public:
|
||||
app();
|
||||
|
@ -42,6 +47,7 @@ class app : public Main {
|
|||
void showMqtt(void);
|
||||
|
||||
void saveValues(bool webSend);
|
||||
void updateCrc(void);
|
||||
|
||||
void dumpBuf(const char *info, uint8_t buf[], uint8_t len) {
|
||||
Serial.print(String(info));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue