diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-07-06 21:33:10 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-07-06 21:33:10 +1000 |
commit | cc29f957a1fdbd21871d0a0183ddd2246827bc00 (patch) | |
tree | f4e9b5e698711fd4362b60e5cc6dedaa32581ea9 /megalogger | |
parent | 8f9652cfb3f9be74bb9de3c097e5cf316737d21b (diff) | |
download | 2021-arduino-obd-cc29f957a1fdbd21871d0a0183ddd2246827bc00.tar.gz 2021-arduino-obd-cc29f957a1fdbd21871d0a0183ddd2246827bc00.tar.bz2 2021-arduino-obd-cc29f957a1fdbd21871d0a0183ddd2246827bc00.zip |
Add low-power sleep
Diffstat (limited to 'megalogger')
-rw-r--r-- | megalogger/megalogger.ino | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index 4a04cb9..b547efa 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -11,11 +11,12 @@ #include <Wire.h> #endif #include <OBD.h> +#include <SPI.h> #include <SD.h> #include <MultiLCD.h> #include <TinyGPS.h> #include <MPU6050.h> -#include <SPI.h> +#include <Narcoleptic.h> #include "config.h" #include "images.h" #if ENABLE_DATA_OUT && USE_SOFTSERIAL @@ -445,6 +446,8 @@ private: int value; if (read(PID_RPM, value) && value > 0) break; + + Narcoleptic.delay(2000); } lcd.backlight(true); state |= STATE_OBD_READY; |