application layer with: button, LED, pot, tempSense
Fork of LoRaWAN-demo-72-bootcamp by
Use with sx1272 shield with grove peripherals connected:
D8 D9: Button | RX TX | A3 A4: TempSense |
D6 D7: | SCL SDA : LED | A1 A2: Pot |
Button
Sends to different payloads: short press (under 1 sec)
long press: held down > 1 sec.
serial console keys
115200bps, 8N1
Enter key not used
Keys '0' to '3': cayenne channel number
'0': pot (rotary sensor)
'1': temperature
'
2': digital out
'3': analog out
Diff: system/timer.h
- Revision:
- 9:0083afd69815
- Parent:
- 7:ceb4063e6863
--- a/system/timer.h Tue Apr 04 13:37:39 2017 +0000 +++ b/system/timer.h Mon Apr 24 13:31:49 2017 +0000 @@ -22,7 +22,7 @@ */ typedef struct TimerEvent_s { - uint64_t value; + uint32_t value; void ( *Callback )( void ); Ticker Timer; }TimerEvent_t; @@ -31,7 +31,7 @@ * \brief Timer time variable definition */ #ifndef TimerTime_t -typedef uint64_t TimerTime_t; +typedef uint32_t TimerTime_t; #endif /*!