Lucas Borges
/
MenuLCD_Copy
this locks like shit
Fork of MenuLCD_copy by
menbed/menbedMenuParam.cpp
- Committer:
- LucasMatBorges
- Date:
- 2017-05-19
- Revision:
- 1:f105b690aeb7
- Parent:
- 0:92357d1220f3
File content as of revision 1:f105b690aeb7:
#include "mbed.h" #include "include/menbedMenuParam.h" #include <string> MenbedMenuParam::MenbedMenuParam ( float (*initValFcn)(void), void (*finalValFcn)(float), bool liveUpdate, float min, float max, float inc) : initValFcn(initValFcn), finalValFcn(finalValFcn), _liveUpdate(liveUpdate), _min(min), _max(max), _inc(inc) { } float MenbedMenuParam::getVal (void) { if (initValFcn == NULL) return 0.0; return initValFcn(); } void MenbedMenuParam::setVal (float v) { if (finalValFcn == NULL) return; finalValFcn(v); }