/* -*- C++ -*- */ /******************** Feb.2018 Rui Azevedo - ruihfazevedo(@rrob@)gmail.com www.r-site.net string input driver ***/ #ifndef RSITE_ARDUINO_MENU_HW_STRINGIN #define RSITE_ARDUINO_MENU_HW_STRINGIN #include "../menuDefs.h" namespace Menu { //using a circular buffer //attention, if using sz=0 (2^0=1) we just override previous character template//this size is 2^sz class stringIn:public menuIn { public: static_assert(sz<7,"ArduinoMenu: max buffer size is 2^7"); enum Mask:uint8_t { nBytes=1<