Baseline for testing
Diff: AddressMap.h
- Revision:
- 0:e24f6400a8c8
- Child:
- 1:a2073f60d3a6
diff -r 000000000000 -r e24f6400a8c8 AddressMap.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AddressMap.h Thu Jul 25 00:43:23 2019 +0000 @@ -0,0 +1,33 @@ + +#include "mbed.h" +#include <vector> + +#define MAX_ADDR_LENGTH 40 +#define MAX_ADDRESSES 100 + +class Address +{ +public: + + int address; + char description[MAX_ADDR_LENGTH]; + +}; + +class AddressMap +{ + +public: + + Address addresses[MAX_ADDRESSES]; + + void init(); + int load(); + void save(); + void display(Serial *pc); + //void add(int event, char* timeStamp); + //void clear(); + char* getString(unsigned char idx ); + + void play(Serial *pc, int address); +}; \ No newline at end of file