mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-12 08:26:38 +02:00
* renamed .ino (must be identical to parent folder name)
* build CRC over settings, only if the CRC matches settings are applied * send command 0x80 (set time was wrong) * improved crc16 routine * added statistics for received commands and send statistics (channels are not correct for now!) * receive of commands 0x01, 0x02, 0x03, 0x81 and 0x84 working
This commit is contained in:
parent
5f927ad8c5
commit
a7add69719
11 changed files with 226 additions and 123 deletions
25
tools/esp8266/esp8266.ino
Normal file
25
tools/esp8266/esp8266.ino
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include "app.h"
|
||||
|
||||
app myApp;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void setup() {
|
||||
pinMode(RF24_IRQ_PIN, INPUT_PULLUP);
|
||||
attachInterrupt(digitalPinToInterrupt(RF24_IRQ_PIN), handleIntr, FALLING);
|
||||
|
||||
// AP name, password, timeout
|
||||
myApp.setup("ESP AHOY", "esp_8266", 15);
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void loop() {
|
||||
myApp.loop();
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
ICACHE_RAM_ATTR void handleIntr(void) {
|
||||
myApp.handleIntr();
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue