Holger Wirtz 2 years ago
parent b35ec52405
commit ebde14e11d
  1. 10
      UI.hpp
  2. 2
      config.h

@ -6778,7 +6778,10 @@ void display_bar_float(const char* title, float value, float factor, int32_t min
// Value
display.setCursor(LCD_cols - size, 1);
display_float(value * factor, size_number, size_fraction, zeros, false, sign); // TBD
//display_float(value * factor, size_number, size_fraction, zeros, false, sign); // does not work with "Smallest code" optimizer
char s[LCD_cols + 1];
snprintf_P(s, strlen(s), PSTR("%+1.1f"), value * factor); // not so good solution, but works with optimizer
display.print(s);
// Bar
display.setCursor(0, 1);
@ -6833,7 +6836,10 @@ void display_meter_float(const char* title, float value, float factor, float off
// Value
display.setCursor(LCD_cols - size, 1);
display_float((value + offset) * factor, size_number, size_fraction, zeros, false, sign);
//display_float((value + offset) * factor, size_number, size_fraction, zeros, false, sign); // does not work with "Smallest code" optimizer
char s[LCD_cols + 1];
snprintf_P(s, strlen(s), PSTR("%+1.1f"), (value + offset) * factor); // not so good solution, but works with optimizer
display.print(s);
// Bar
display.setCursor(0, 1);

@ -53,6 +53,8 @@
// sed -i.orig 's/^#define USB_MIDI_SYSEX_MAX 290/#define USB_MIDI_SYSEX_MAX 4104/' /usr/local/arduino-teensy/hardware/teensy/avr/cores/teensy3/usb_midi.h
// sed -i.orig 's/^#define USB_MIDI_SYSEX_MAX 290/#define USB_MIDI_SYSEX_MAX 4104/' /usr/local/arduino-teensy/hardware/teensy/avr/cores/teensy4/usb_midi.h
//#define USB_MIDI_SYSEX_MAX 4104
//
// Information about memory layout, etc.: https://www.pjrc.com/store/teensy41.html
#define VERSION "1.2.3"

Loading…
Cancel
Save