mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-31 17:56:11 +02:00
added ESP8266 code
This commit is contained in:
parent
8030acd283
commit
5f927ad8c5
19 changed files with 1641 additions and 0 deletions
37
tools/esp8266/defines.h
Normal file
37
tools/esp8266/defines.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
#ifndef __DEFINES_H__
|
||||
#define __DEFINES_H__
|
||||
|
||||
|
||||
//-------------------------------------
|
||||
// PINOUT
|
||||
//-------------------------------------
|
||||
#define RF24_IRQ_PIN 4
|
||||
#define RF24_CE_PIN 5
|
||||
#define RF24_CS_PIN 15
|
||||
|
||||
|
||||
//-------------------------------------
|
||||
// VERSION
|
||||
//-------------------------------------
|
||||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 1
|
||||
#define VERSION_PATCH 7
|
||||
|
||||
|
||||
//-------------------------------------
|
||||
// EEPROM
|
||||
//-------------------------------------
|
||||
#define SSID_LEN 32
|
||||
#define PWD_LEN 64
|
||||
#define DEVNAME_LEN 32
|
||||
|
||||
#define HOY_ADDR_LEN 6
|
||||
|
||||
|
||||
#define ADDR_SSID 0 // start address
|
||||
#define ADDR_PWD ADDR_SSID + SSID_LEN
|
||||
#define ADDR_DEVNAME ADDR_PWD + PWD_LEN
|
||||
|
||||
#define ADDR_HOY_ADDR ADDR_DEVNAME + DEVNAME_LEN
|
||||
|
||||
#endif /*__DEFINES_H__*/
|
Loading…
Add table
Add a link
Reference in a new issue