Compare commits

...

2 Commits

Author SHA1 Message Date
interfisch 5a0adf98bd add env for teensy40 2023-07-18 22:31:12 +02:00
interfisch afe0059b51 change efficiency display for consumption in kWh/100km 2023-07-18 21:01:07 +02:00
2 changed files with 22 additions and 11 deletions

View File

@ -221,20 +221,20 @@ void display_standingDisplay(ESCSerialComm& escFront, ESCSerialComm& escRear) {
display.print(F("Trip:"));
dtostrf(_displaytrip,1,0,buf);
display.print((String)buf);
display.print(" m ");
display.print("m ");
//dtostrf(_displaycurrent,1,2,buf);
dtostrf(_displaywatthours,1,2,buf);
display.print((String)buf);
//display.print(" Ah");
display.print(" Wh");
display.print("Wh");
display.println();
display.print(F("Eff: "));
display.print(F(""));
//dtostrf( _displaytrip/1000/_displaycurrent ,1,2,buf);
dtostrf( _displaytrip/1000/_displaywatthours ,1,2,buf);
dtostrf( _displaywatthours/_displaytrip*100,1,2,buf);
display.print((String)buf);
//display.print(" km/Ah");
display.print(" km/Wh");
display.print(" kWh/100km");
if (_displayOverall){
display.print(" sum");

View File

@ -8,13 +8,14 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:teensy31]
platform = teensy
board = teensy31
[platformio]
default_envs = teensy31
; Set/override default options for each "[env:***]"
[env]
framework = arduino
monitor_speed = 115200
build_flags =
@ -25,4 +26,14 @@ lib_deps =
adafruit/Adafruit SSD1306@^2.5.7
arduino-libraries/SD@^1.2.4
https://github.com/adafruit/Adafruit_NeoPixel
https://github.com/milesburton/Arduino-Temperature-Control-Library/
https://github.com/milesburton/Arduino-Temperature-Control-Library/
[env:teensy31]
platform = teensy
board = teensy31
[env:teensy40]
platform = teensy
board = teensy40