diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-11-10 21:06:22 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-11-10 21:06:22 +1100 |
commit | 60173a1bc7138965769b495067d774436e6b97cf (patch) | |
tree | b18440138ad68062973615ceb63371971737af40 /nanotimer/nanotimer.ino | |
parent | e239aebb7bc0fe7be85baaaa9b5e1b342a2a5979 (diff) | |
download | 2021-arduino-obd-60173a1bc7138965769b495067d774436e6b97cf.tar.gz 2021-arduino-obd-60173a1bc7138965769b495067d774436e6b97cf.tar.bz2 2021-arduino-obd-60173a1bc7138965769b495067d774436e6b97cf.zip |
Update Nano Timer
Diffstat (limited to 'nanotimer/nanotimer.ino')
-rw-r--r-- | nanotimer/nanotimer.ino | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nanotimer/nanotimer.ino b/nanotimer/nanotimer.ino index a5ed6a4..7b47f70 100644 --- a/nanotimer/nanotimer.ino +++ b/nanotimer/nanotimer.ino @@ -7,9 +7,10 @@ #include <Arduino.h> #include <Wire.h> +#include <SPI.h> #include <OBD.h> #include <SD.h> -#include "MicroLCD.h" +#include <MicroLCD.h> #include "config.h" #if USE_SOFTSERIAL #include <SoftwareSerial.h> @@ -238,9 +239,7 @@ private: if (times[2] == 0 && speed >= SPEED_THRESHOLD_3) { times[2] = elapsed / 100; stage = STAGE_IDLE; - lcd.clearLine(0); - lcd.clearLine(1); - lcd.clearLine(2); + lcd.clear(0, 0, 128, 24); showTimerResults(); lcd.setFontSize(FONT_SIZE_MEDIUM); lcd.setCursor(0, 0); |