28 using Enumeration::Enumeration;
30 void writeCurrentValue()
override {
31 int32_t oldMagnitude = FlashStorage::defaultMagnitude;
32 FlashStorage::defaultMagnitude = this->getValue();
34 int32_t delta = FlashStorage::defaultMagnitude - oldMagnitude;
35 int32_t oldSwing = FlashStorage::defaultSwingInterval;
36 FlashStorage::defaultSwingInterval = clampSwingIntervalSyncLevel(FlashStorage::defaultSwingInterval - delta);
42 intToString(96 << this->getValue(), buffer);
46 void drawValue()
override { display->setTextAsNumber(96 << this->getValue()); }
47 size_t size()
override {
return 7; }
void drawStringCentred(char const *string, int32_t pixelY, int32_t textWidth, int32_t textHeight, int32_t centrePos=OLED_MAIN_WIDTH_PIXELS/2)
Definition canvas.cpp:189