![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
We are going to win! wohoo
ui/ui.h
- Committer:
- madcowswe
- Date:
- 2012-11-14
- Revision:
- 9:08552997b544
- Parent:
- 1:6799c07fe510
File content as of revision 9:08552997b544:
#ifndef UI_H #define UI_H #include "rtos.h" #define NUMIDS 32 class UI { public: Thread tUI; UI(); bool regid(char id, unsigned int length); bool updateval(char id, float* buffer, unsigned int length); bool updateval(char id, float value); bool unregid(char id); private: Mutex printlock; char idlist[NUMIDS]; float* buffarr[NUMIDS]; volatile int newdataflags; //Only works for NUMID = 32 void printloop(); static void printtw(void const *arg){ ((UI*)arg)->printloop(); } }; #endif //UI_H