application layer with: button, LED, pot, tempSense

Dependencies:   mbed SX1272Lib

Fork of LoRaWAN-demo-72-bootcamp by Semtech

Use with sx1272 shield with grove peripherals connected:

D8 D9: ButtonRX TXA3 A4: TempSense
D6 D7:SCL SDA : LEDA1 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

Committer:
dudmuck
Date:
Tue Jan 30 22:49:12 2018 +0000
Revision:
10:52810ecbd83b
Parent:
0:45496a70a8a5
application layer with: button, LED, pot, tempSense

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mluis 0:45496a70a8a5 1 /*
mluis 0:45496a70a8a5 2 / _____) _ | |
mluis 0:45496a70a8a5 3 ( (____ _____ ____ _| |_ _____ ____| |__
mluis 0:45496a70a8a5 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
mluis 0:45496a70a8a5 5 _____) ) ____| | | || |_| ____( (___| | | |
mluis 0:45496a70a8a5 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
mluis 0:45496a70a8a5 7 (C)2015 Semtech
mluis 0:45496a70a8a5 8
mluis 0:45496a70a8a5 9 Description: VT100 serial display management
mluis 0:45496a70a8a5 10
mluis 0:45496a70a8a5 11 License: Revised BSD License, see LICENSE.TXT file include in the project
mluis 0:45496a70a8a5 12
mluis 0:45496a70a8a5 13 Maintainer: Miguel Luis and Gregory Cristian
mluis 0:45496a70a8a5 14 */
mluis 0:45496a70a8a5 15 #ifndef __SERIAL_DISPLAY_H__
mluis 0:45496a70a8a5 16 #define __SERIAL_DISPLAY_H__
mluis 0:45496a70a8a5 17
dudmuck 10:52810ecbd83b 18 #include "vt100.h"
dudmuck 10:52810ecbd83b 19
mluis 0:45496a70a8a5 20 void SerialDisplayInit( void );
mluis 0:45496a70a8a5 21 void SerialDisplayUpdateUplink( bool acked, uint8_t datarate, uint16_t counter, uint8_t port, uint8_t *buffer, uint8_t bufferSize );
mluis 0:45496a70a8a5 22 void SerialDisplayUpdateDownlink( bool rxData, int16_t rssi, int8_t snr, uint16_t counter, uint8_t port, uint8_t *buffer, uint8_t bufferSize );
mluis 0:45496a70a8a5 23 void SerialDisplayPrintCheckBox( bool activated );
mluis 0:45496a70a8a5 24 void SerialDisplayUpdateActivationMode( bool otaa );
mluis 0:45496a70a8a5 25 void SerialDisplayUpdateEui( uint8_t line, uint8_t *eui );
mluis 0:45496a70a8a5 26 void SerialDisplayUpdateKey( uint8_t line, uint8_t *key );
mluis 0:45496a70a8a5 27 void SerialDisplayUpdateNwkId( uint8_t id );
mluis 0:45496a70a8a5 28 void SerialDisplayUpdateDevAddr( uint32_t addr );
mluis 0:45496a70a8a5 29 void SerialDisplayUpdateFrameType( bool confirmed );
mluis 0:45496a70a8a5 30 void SerialDisplayUpdateAdr( bool adr );
mluis 0:45496a70a8a5 31 void SerialDisplayUpdateDutyCycle( bool dutyCycle );
mluis 0:45496a70a8a5 32 void SerialDisplayUpdatePublicNetwork( bool network );
mluis 0:45496a70a8a5 33 void SerialDisplayUpdateData( uint8_t *buffer );
mluis 0:45496a70a8a5 34 void SerialDisplayUpdateNetworkIsJoined( bool state );
mluis 0:45496a70a8a5 35 void SerialDisplayUpdateUplinkAcked( bool state );
mluis 0:45496a70a8a5 36 void SerialDisplayUpdateDonwlinkRxData( bool state );
mluis 0:45496a70a8a5 37 bool SerialDisplayReadable( void );
mluis 0:45496a70a8a5 38 uint8_t SerialDisplayGetChar( void );
mluis 0:45496a70a8a5 39
dudmuck 10:52810ecbd83b 40 extern VT100 vt;
dudmuck 10:52810ecbd83b 41
mluis 0:45496a70a8a5 42 #endif // __SERIAL_DISPLAY_H__