diff --git a/README.md b/README.md index 39af52c..48fb8d7 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,16 @@ # README # -This README would normally document whatever steps are necessary to get your application up and running. +This is a quick Arduino project for a Kub Kar track timer -### What is this repository for? ### +### Wiring ### -* Quick summary -* Version -* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo) +* (D2 - SW - GND) Reset switch (held closed when car gate is up) +* (D3 - SW - GND) Car #1 sensor +* (D4 - SW - GND) Car #2 sensor +* (D5 - SW - GND) Car #3 sensor +* (D6 - SW - GND) Car #4 sensor +* (A4) SDA on LCD (YwRobot LCM1602 IIC V1) +* (A5) SDL on LCD -### How do I get set up? ### -* Summary of set up -* Configuration -* Dependencies -* Database configuration -* How to run tests -* Deployment instructions -### Contribution guidelines ### - -* Writing tests -* Code review -* Other guidelines - -### Who do I talk to? ### - -* Repo owner or admin -* Other community or team contact \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index bc1c45b..07ef5e8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -86,12 +86,13 @@ short state = 0; void loop() { + if (digitalRead(PIN_RESET) == LOW) { if (state != STATE_READY) { state = STATE_READY; lcd.clear(); lcd.setCursor(0,0); - lcd.print("Ready?"); + lcd.print("Ready..."); resetCars(); digitalWrite(LED_BUILTIN, LOW); } @@ -109,7 +110,7 @@ void loop() bool allDone = true; for(short i = 0; i