v0.6.400
This commit is contained in:
@@ -355,6 +355,7 @@ void DspCore::drawVolumeBar(bool withNumber) {
|
||||
int16_t vTop = sheight - TFT_FRAMEWDT * 2;
|
||||
int16_t volTop = sheight - TFT_FRAMEWDT * 2 - TFT_LINEHGHT - 2;
|
||||
int16_t vWidth = swidth - TFT_FRAMEWDT *2;
|
||||
(void)volTop;
|
||||
uint16_t ww = map(config.store.volume, 0, 254, 0, vWidth - 2);
|
||||
fillRect(TFT_FRAMEWDT, vTop - 2, vWidth, 6, TFT_BG);
|
||||
drawRectangle(TFT_FRAMEWDT, vTop - 2, TFT_FRAMEWDT+vWidth, 6+vTop - 2, TFT_LOGO);
|
||||
|
||||
@@ -257,6 +257,7 @@ void DspCore::printClock(struct tm timeinfo, bool dots, bool redraw) {
|
||||
|
||||
void DspCore::drawVolumeBar(bool withNumber) {
|
||||
int16_t vTop = sheight - 4;
|
||||
(void)vTop;
|
||||
int16_t vWidth = swidth-TFT_FRAMEWDT*2;
|
||||
#if DSP_MODEL==DSP_SSD1306
|
||||
uint8_t ww = map(config.store.volume, 0, 254, 0, vWidth - 2);
|
||||
|
||||
@@ -34,7 +34,8 @@ private:
|
||||
uint8_t encoderBPin;
|
||||
long encoderSteps;
|
||||
|
||||
long _minEncoderValue = -1 << 15;
|
||||
//long _minEncoderValue = -1 << 15;
|
||||
long _minEncoderValue = -32768;
|
||||
long _maxEncoderValue = 1 << 15;
|
||||
|
||||
uint8_t old_AB;
|
||||
|
||||
Reference in New Issue
Block a user