void setpageSDPopCallback(void *ptr) { Psdcard.show(); uint16_t fileCnt = card.getnrfilenames(); if (fileCnt <= 6) slidermaxval = 0; else slidermaxval = fileCnt - 6; uint16_t hig = 210 - slidermaxval * 10; if (hig < 10) hig = 10; sdlist.setHigVal(hig); sdlist.setMaxVal(slidermaxval); sdlist.setValue(slidermaxval); sendCommand("ref 0"); setrowsdcard(); }
static void setpagesdcard() { PageInfo = false; Psdcard.show(); uint16_t fileCnt = card.getnrfilenames(); if (fileCnt <= 6) slidermaxval = 0; else slidermaxval = fileCnt - 6; uint16_t hig = 210 - slidermaxval * 10; if (hig < 10) hig = 10; sdlist.setHigVal(hig); sdlist.setMaxVal(slidermaxval); sdlist.setValue(slidermaxval); sendCommand("ref 0"); setrowsdcard(); }
void sdlistPopCallback(void *ptr) { uint32_t number = 0; sdlist.getValue(&number); number = slidermaxval - number; setrowsdcard(number); }