From 8288b396875c0392338ad88ec247cc7a7c3405ef Mon Sep 17 00:00:00 2001 From: benjamenm03 Date: Wed, 14 Feb 2024 02:39:16 -0500 Subject: [PATCH] updating solder code --- examples/Solder-Tester/Solder-Tester.ino | 534 +++++++++++------------ library.json | 2 +- library.properties | 2 +- 3 files changed, 259 insertions(+), 279 deletions(-) diff --git a/examples/Solder-Tester/Solder-Tester.ino b/examples/Solder-Tester/Solder-Tester.ino index 9a1076e..650f219 100644 --- a/examples/Solder-Tester/Solder-Tester.ino +++ b/examples/Solder-Tester/Solder-Tester.ino @@ -1,52 +1,43 @@ /* - Blink + Solder_Tester - Turns an LED on for one second, then off for one second, repeatedly. + Created February 14th, 2024 + By: Benjamen Miller + NOTE: This code is NOT elegant in any way, shape, or form... it is simply a quick utility script, a quite ugly one! - Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO - it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to - the correct LED pin independent of which board is used. - If you want to know what pin the on-board LED is connected to on your Arduino - model, check the Technical Specs of your board at: - https://www.arduino.cc/en/Main/Products + Performs test on soldering challenge boards - modified 8 May 2014 - by Scott Fitzgerald - modified 2 Sep 2016 - by Arturo Guadalupi - modified 8 Sep 2016 - by Colby Newman - modified 27 Aug 2023 - by Eric Andrechek + - Starts with two cycles of knight-rider pattern using 9 LEDs to determine LED status + - Onboard LED flashes 0-5 times, indicating the number of voltage readings that are within their proper thresholds (out of 5) + - Simultaneously uses LEDs 0-4 to indicate which voltages are within a reasonable range, in order (batt, 5v, 2/3 * 5v, 1/3 * 5v, 3.3v) + - Indicates battery voltage from scale of 0-5v using 1-9 LEDs (through 1/2 * Vin voltage divider) + - Flashes 5 times to indicate readout from 5v pin, then indicates voltage level of 5v pin (scale from 1-9 LEDs of 0-5 volts) + - Flashes 2 times to indicate readout from 5v pin through 2/3 * Vin voltage divider + - Flashes 2 times to indicate readout from 5v pin through 1/3 * Vin voltage divider + - Flashes 3 times to indicate readout from 3.3v pin (still on scale from 0-5v using 1-9 LED scale) + - ^^Repeats cycle^^ - This example code is in the public domain. - - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink + This solder challenge code is in the ENGR100-950 Arduino Library */ -// Change this variable to the pin you plug your LED circuit into: -#define LED_PIN 1 -// set these to the next pins in your circuit. Make sure that the physical order of the LEDs -// on your board are in the order they are labelled here. - -#define LED_PIN_2 2 -#define LED_PIN_3 3 -#define LED_PIN_4 4 -#define LED_PIN_5 5 -#define LED_PIN_6 6 -#define LED_PIN_7 7 -#define LED_PIN_8 8 -#define LED_PIN_9 9 +#define LED_PIN_1 2 +#define LED_PIN_2 3 +#define LED_PIN_3 4 +#define LED_PIN_4 5 +#define LED_PIN_5 6 +#define LED_PIN_6 7 +#define LED_PIN_7 8 +#define LED_PIN_8 9 +#define LED_PIN_9 10 // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output. - pinMode(LED_BUILTIN, OUTPUT); Serial.begin(9600); // initialize digital pin LED_PIN as an output. - pinMode(LED_PIN, OUTPUT); + pinMode(LED_PIN_1, OUTPUT); pinMode(LED_PIN_2, OUTPUT); pinMode(LED_PIN_3, OUTPUT); pinMode(LED_PIN_4, OUTPUT); @@ -55,19 +46,18 @@ void setup() { pinMode(LED_PIN_7, OUTPUT); pinMode(LED_PIN_8, OUTPUT); pinMode(LED_PIN_9, OUTPUT); + pinMode(LED_BUILTIN, OUTPUT); } // the loop function runs over and over again forever void loop() { for(int i = 0; i < 2; ++i){ - digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) - - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); delay(100); digitalWrite(LED_PIN_2, HIGH); delay(100); digitalWrite(LED_PIN_3, HIGH); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); delay(100); digitalWrite(LED_PIN_4, HIGH); digitalWrite(LED_PIN_2, LOW); @@ -87,14 +77,13 @@ void loop() { digitalWrite(LED_PIN_9, HIGH); digitalWrite(LED_PIN_7, LOW); delay(100); - digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW - delay(100); - digitalWrite(LED_PIN_9, HIGH); + + digitalWrite(LED_PIN_8, LOW); delay(100); + digitalWrite(LED_PIN_8, HIGH); - digitalWrite(LED_BUILTIN, LOW); delay(100); + digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_9, LOW); delay(100); @@ -113,17 +102,71 @@ void loop() { digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_4, LOW); delay(100); - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_3, LOW); delay(100); digitalWrite(LED_PIN_2, LOW); delay(100); } + digitalWrite(LED_PIN_1, LOW); + + delay(1000); + + int correctVoltages = 0; + + double batteryVal = analogRead(A6); + double batteryVolts = batteryVal * (5.0 / 1023.0); + + delay(100); + double fiveVal = analogRead(A1); + double fiveVolts = fiveVal * (5.0 / 1023.0); + + delay(100); + double twothreeVal = analogRead(A2); + double twothreeVolts = twothreeVal * (5.0 / 1023.0); + + delay(100); + double onethreeVal = analogRead(A3); + double onethreeVolts = onethreeVal * (5.0 / 1023.0); + + delay(100); + double threeVal = analogRead(A0); + double threeVolts = threeVal * (5.0 / 1023.0); + + if(batteryVolts <= 5.0 && batteryVolts >= 3.0) { + correctVoltages++; + digitalWrite(LED_PIN_1, HIGH); + } + if(fiveVolts <= 7.0 && fiveVolts >= 4.7) { + correctVoltages++; + digitalWrite(LED_PIN_2, HIGH); + } + if(twothreeVolts <= 4.7 && twothreeVolts >= 3.0) { + correctVoltages++; + digitalWrite(LED_PIN_3, HIGH); + } + if(onethreeVolts <= 2.4 && onethreeVolts >= 1.4) { + correctVoltages++; + digitalWrite(LED_PIN_4, HIGH); + } + if(threeVolts <= 4.0 && threeVolts >= 2.0) { + correctVoltages++; + digitalWrite(LED_PIN_5, HIGH); + } + + delay(1000); + + for(int i = 0; i < correctVoltages; ++i) { + digitalWrite(LED_BUILTIN, HIGH); + delay(700); + digitalWrite(LED_BUILTIN, LOW); + delay(700); + } for(int i = 0; i < 10; ++i) { int batteryVoltage = analogRead(A6); - if(batteryVoltage <= 1023 && batteryVoltage > 920){ - digitalWrite(LED_PIN, HIGH); + if(batteryVoltage <= 1023 && batteryVoltage > 909){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -132,10 +175,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + } - else if(batteryVoltage <= 920 && batteryVoltage > 817){ - digitalWrite(LED_PIN, HIGH); + else if(batteryVoltage <= 909 && batteryVoltage > 795){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -144,10 +187,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, LOW); + } - else if(batteryVoltage <= 817 && batteryVoltage > 714){ - digitalWrite(LED_PIN, HIGH); + else if(batteryVoltage <= 795 && batteryVoltage > 681){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -156,10 +199,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(batteryVoltage <= 714 && batteryVoltage > 611){ - digitalWrite(LED_PIN, HIGH); + else if(batteryVoltage <= 681 && batteryVoltage > 567){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -168,10 +211,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(batteryVoltage <= 611 && batteryVoltage > 508){ - digitalWrite(LED_PIN, HIGH); + else if(batteryVoltage <= 567 && batteryVoltage > 453){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -180,10 +223,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(batteryVoltage <= 508 && batteryVoltage > 405){ - digitalWrite(LED_PIN, HIGH); + else if(batteryVoltage <= 453 && batteryVoltage > 339){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -192,10 +235,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(batteryVoltage <= 405 && batteryVoltage > 302){ - digitalWrite(LED_PIN, HIGH); + else if(batteryVoltage <= 339 && batteryVoltage > 225){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -204,10 +247,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(batteryVoltage <= 302 && batteryVoltage > 199){ - digitalWrite(LED_PIN, HIGH); + else if(batteryVoltage <= 225 && batteryVoltage > 111){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, LOW); @@ -216,10 +259,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(batteryVoltage <= 199 && batteryVoltage > 96){ - digitalWrite(LED_PIN, HIGH); + else if(batteryVoltage <= 111 && batteryVoltage > 0){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -227,24 +270,11 @@ void loop() { digitalWrite(LED_PIN_6, LOW); digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); - digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); - } - else if(batteryVoltage <= 96 && batteryVoltage > 0){ - digitalWrite(LED_PIN, HIGH); - digitalWrite(LED_PIN_2, LOW); - digitalWrite(LED_PIN_3, LOW); - digitalWrite(LED_PIN_4, LOW); - digitalWrite(LED_PIN_5, LOW); - digitalWrite(LED_PIN_6, LOW); - digitalWrite(LED_PIN_7, LOW); - digitalWrite(LED_PIN_8, LOW); - digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + digitalWrite(LED_PIN_9, LOW); } else { for(int i = 0; i < 5; ++i){ - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -253,9 +283,9 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + delay(500); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); digitalWrite(LED_PIN_2, LOW); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -264,7 +294,7 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + delay(500); } return; @@ -272,7 +302,7 @@ void loop() { delay(500); } for(int i = 0; i < 5; ++i){ - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -281,9 +311,9 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + delay(200); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); digitalWrite(LED_PIN_2, LOW); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -292,14 +322,14 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + delay(200); } for(int i = 0; i < 10; ++i) { int fiveVoltage = analogRead(A1); - if(fiveVoltage <= 1023 && fiveVoltage > 920){ - digitalWrite(LED_PIN, HIGH); + if(fiveVoltage <= 1023 && fiveVoltage > 909){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -308,10 +338,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + } - else if(fiveVoltage <= 920 && fiveVoltage > 817){ - digitalWrite(LED_PIN, HIGH); + else if(fiveVoltage <= 909 && fiveVoltage > 795){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -320,10 +350,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, LOW); + } - else if(fiveVoltage <= 817 && fiveVoltage > 714){ - digitalWrite(LED_PIN, HIGH); + else if(fiveVoltage <= 795 && fiveVoltage > 681){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -332,10 +362,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(fiveVoltage <= 714 && fiveVoltage > 611){ - digitalWrite(LED_PIN, HIGH); + else if(fiveVoltage <= 681 && fiveVoltage > 567){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -344,10 +374,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(fiveVoltage <= 611 && fiveVoltage > 508){ - digitalWrite(LED_PIN, HIGH); + else if(fiveVoltage <= 567 && fiveVoltage > 453){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -356,10 +386,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(fiveVoltage <= 508 && fiveVoltage > 405){ - digitalWrite(LED_PIN, HIGH); + else if(fiveVoltage <= 453 && fiveVoltage > 339){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -368,10 +398,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(fiveVoltage <= 405 && fiveVoltage > 302){ - digitalWrite(LED_PIN, HIGH); + else if(fiveVoltage <= 339 && fiveVoltage > 225){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -380,10 +410,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(fiveVoltage <= 302 && fiveVoltage > 199){ - digitalWrite(LED_PIN, HIGH); + else if(fiveVoltage <= 225 && fiveVoltage > 111){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, LOW); @@ -392,10 +422,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(fiveVoltage <= 199 && fiveVoltage > 96){ - digitalWrite(LED_PIN, HIGH); + else if(fiveVoltage <= 111 && fiveVoltage > 0){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -404,23 +434,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); - } - else if(fiveVoltage <= 96 && fiveVoltage > 0){ - digitalWrite(LED_PIN, HIGH); - digitalWrite(LED_PIN_2, LOW); - digitalWrite(LED_PIN_3, LOW); - digitalWrite(LED_PIN_4, LOW); - digitalWrite(LED_PIN_5, LOW); - digitalWrite(LED_PIN_6, LOW); - digitalWrite(LED_PIN_7, LOW); - digitalWrite(LED_PIN_8, LOW); - digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); } else { for(int i = 0; i < 5; ++i){ - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -429,9 +446,9 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + delay(500); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); digitalWrite(LED_PIN_2, LOW); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -440,7 +457,7 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + delay(500); } return; @@ -449,7 +466,7 @@ void loop() { } for(int i = 0; i < 2; ++i){ - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -458,9 +475,9 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + delay(200); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); digitalWrite(LED_PIN_2, LOW); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -469,14 +486,14 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + delay(200); } for(int i = 0; i < 10; ++i) { int twothreeVoltage = analogRead(A2); - if(twothreeVoltage <= 1023 && twothreeVoltage > 920){ - digitalWrite(LED_PIN, HIGH); + if(twothreeVoltage <= 1023 && twothreeVoltage > 909){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -485,10 +502,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + } - else if(twothreeVoltage <= 920 && twothreeVoltage > 817){ - digitalWrite(LED_PIN, HIGH); + else if(twothreeVoltage <= 909 && twothreeVoltage > 795){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -497,10 +514,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, LOW); + } - else if(twothreeVoltage <= 817 && twothreeVoltage > 714){ - digitalWrite(LED_PIN, HIGH); + else if(twothreeVoltage <= 795 && twothreeVoltage > 681){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -509,10 +526,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(twothreeVoltage <= 714 && twothreeVoltage > 611){ - digitalWrite(LED_PIN, HIGH); + else if(twothreeVoltage <= 681 && twothreeVoltage > 567){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -521,10 +538,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(twothreeVoltage <= 611 && twothreeVoltage > 508){ - digitalWrite(LED_PIN, HIGH); + else if(twothreeVoltage <= 567 && twothreeVoltage > 453){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -533,10 +550,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(twothreeVoltage <= 508 && twothreeVoltage > 405){ - digitalWrite(LED_PIN, HIGH); + else if(twothreeVoltage <= 453 && twothreeVoltage > 339){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -545,10 +562,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(twothreeVoltage <= 405 && twothreeVoltage > 302){ - digitalWrite(LED_PIN, HIGH); + else if(twothreeVoltage <= 339 && twothreeVoltage > 225){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -557,10 +574,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(twothreeVoltage <= 302 && twothreeVoltage > 199){ - digitalWrite(LED_PIN, HIGH); + else if(twothreeVoltage <= 225 && twothreeVoltage > 111){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, LOW); @@ -569,10 +586,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(twothreeVoltage <= 199 && twothreeVoltage > 96){ - digitalWrite(LED_PIN, HIGH); + else if(twothreeVoltage <= 111 && twothreeVoltage > 0){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -581,23 +598,11 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); - } - else if(twothreeVoltage <= 96 && twothreeVoltage > 0){ - digitalWrite(LED_PIN, HIGH); - digitalWrite(LED_PIN_2, LOW); - digitalWrite(LED_PIN_3, LOW); - digitalWrite(LED_PIN_4, LOW); - digitalWrite(LED_PIN_5, LOW); - digitalWrite(LED_PIN_6, LOW); - digitalWrite(LED_PIN_7, LOW); - digitalWrite(LED_PIN_8, LOW); - digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } else { for(int i = 0; i < 5; ++i){ - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -606,9 +611,9 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + delay(500); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); digitalWrite(LED_PIN_2, LOW); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -617,7 +622,7 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + delay(500); } return; @@ -626,7 +631,7 @@ void loop() { } for(int i = 0; i < 2; ++i){ - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -635,9 +640,9 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + delay(200); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); digitalWrite(LED_PIN_2, LOW); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -646,14 +651,14 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + delay(200); } for(int i = 0; i < 10; ++i) { int onethreeVoltage = analogRead(A3); - if(onethreeVoltage <= 1023 && onethreeVoltage > 920){ - digitalWrite(LED_PIN, HIGH); + if(onethreeVoltage <= 1023 && onethreeVoltage > 909){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -662,10 +667,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + } - else if(onethreeVoltage <= 920 && onethreeVoltage > 817){ - digitalWrite(LED_PIN, HIGH); + else if(onethreeVoltage <= 909 && onethreeVoltage > 795){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -674,10 +679,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, LOW); + } - else if(onethreeVoltage <= 817 && onethreeVoltage > 714){ - digitalWrite(LED_PIN, HIGH); + else if(onethreeVoltage <= 795 && onethreeVoltage > 681){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -686,10 +691,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(onethreeVoltage <= 714 && onethreeVoltage > 611){ - digitalWrite(LED_PIN, HIGH); + else if(onethreeVoltage <= 681 && onethreeVoltage > 567){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -698,10 +703,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(onethreeVoltage <= 611 && onethreeVoltage > 508){ - digitalWrite(LED_PIN, HIGH); + else if(onethreeVoltage <= 567 && onethreeVoltage > 453){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -710,10 +715,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(onethreeVoltage <= 508 && onethreeVoltage > 405){ - digitalWrite(LED_PIN, HIGH); + else if(onethreeVoltage <= 453 && onethreeVoltage > 339){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -722,10 +727,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(onethreeVoltage <= 405 && onethreeVoltage > 302){ - digitalWrite(LED_PIN, HIGH); + else if(onethreeVoltage <= 339 && onethreeVoltage > 225){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -734,10 +739,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(onethreeVoltage <= 302 && onethreeVoltage > 199){ - digitalWrite(LED_PIN, HIGH); + else if(onethreeVoltage <= 225 && onethreeVoltage > 111){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, LOW); @@ -746,10 +751,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(onethreeVoltage <= 199 && onethreeVoltage > 96){ - digitalWrite(LED_PIN, HIGH); + else if(onethreeVoltage <= 111 && onethreeVoltage > 0){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -758,23 +763,11 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); - } - else if(onethreeVoltage <= 96 && onethreeVoltage > 0){ - digitalWrite(LED_PIN, HIGH); - digitalWrite(LED_PIN_2, LOW); - digitalWrite(LED_PIN_3, LOW); - digitalWrite(LED_PIN_4, LOW); - digitalWrite(LED_PIN_5, LOW); - digitalWrite(LED_PIN_6, LOW); - digitalWrite(LED_PIN_7, LOW); - digitalWrite(LED_PIN_8, LOW); - digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } else { for(int i = 0; i < 5; ++i){ - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -783,9 +776,9 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + delay(500); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); digitalWrite(LED_PIN_2, LOW); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -794,7 +787,7 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + delay(500); } return; @@ -803,7 +796,7 @@ void loop() { } for(int i = 0; i < 3; ++i){ - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -812,9 +805,9 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + delay(200); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); digitalWrite(LED_PIN_2, LOW); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -823,14 +816,14 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + delay(200); } for(int i = 0; i < 10; ++i) { int threeVoltage = analogRead(A0); - if(threeVoltage <= 1023 && threeVoltage > 920){ - digitalWrite(LED_PIN, HIGH); + if(threeVoltage <= 1023 && threeVoltage > 909){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -839,10 +832,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + } - else if(threeVoltage <= 920 && threeVoltage > 817){ - digitalWrite(LED_PIN, HIGH); + else if(threeVoltage <= 909 && threeVoltage > 795){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -851,10 +844,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, LOW); + } - else if(threeVoltage <= 817 && threeVoltage > 714){ - digitalWrite(LED_PIN, HIGH); + else if(threeVoltage <= 795 && threeVoltage > 681){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -863,10 +856,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(threeVoltage <= 714 && threeVoltage > 611){ - digitalWrite(LED_PIN, HIGH); + else if(threeVoltage <= 681 && threeVoltage > 567){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -875,10 +868,10 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(threeVoltage <= 611 && threeVoltage > 508){ - digitalWrite(LED_PIN, HIGH); + else if(threeVoltage <= 567 && threeVoltage > 453){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -887,10 +880,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(threeVoltage <= 508 && threeVoltage > 405){ - digitalWrite(LED_PIN, HIGH); + else if(threeVoltage <= 453 && threeVoltage > 339){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -899,10 +892,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(threeVoltage <= 405 && threeVoltage > 302){ - digitalWrite(LED_PIN, HIGH); + else if(threeVoltage <= 339 && threeVoltage > 225){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -911,10 +904,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(threeVoltage <= 302 && threeVoltage > 199){ - digitalWrite(LED_PIN, HIGH); + else if(threeVoltage <= 225 && threeVoltage > 111){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, LOW); @@ -923,10 +916,10 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + } - else if(threeVoltage <= 199 && threeVoltage > 96){ - digitalWrite(LED_PIN, HIGH); + else if(threeVoltage <= 111 && threeVoltage > 0){ + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -934,24 +927,11 @@ void loop() { digitalWrite(LED_PIN_6, LOW); digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); - digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); - } - else if(threeVoltage <= 96 && threeVoltage > 0){ - digitalWrite(LED_PIN, HIGH); - digitalWrite(LED_PIN_2, LOW); - digitalWrite(LED_PIN_3, LOW); - digitalWrite(LED_PIN_4, LOW); - digitalWrite(LED_PIN_5, LOW); - digitalWrite(LED_PIN_6, LOW); - digitalWrite(LED_PIN_7, LOW); - digitalWrite(LED_PIN_8, LOW); - digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + digitalWrite(LED_PIN_9, LOW); } else { for(int i = 0; i < 5; ++i){ - digitalWrite(LED_PIN, HIGH); + digitalWrite(LED_PIN_1, HIGH); digitalWrite(LED_PIN_2, HIGH); digitalWrite(LED_PIN_3, HIGH); digitalWrite(LED_PIN_4, HIGH); @@ -960,9 +940,9 @@ void loop() { digitalWrite(LED_PIN_7, HIGH); digitalWrite(LED_PIN_8, HIGH); digitalWrite(LED_PIN_9, HIGH); - digitalWrite(LED_BUILTIN, HIGH); + delay(500); - digitalWrite(LED_PIN, LOW); + digitalWrite(LED_PIN_1, LOW); digitalWrite(LED_PIN_2, LOW); digitalWrite(LED_PIN_3, LOW); digitalWrite(LED_PIN_4, LOW); @@ -971,7 +951,7 @@ void loop() { digitalWrite(LED_PIN_7, LOW); digitalWrite(LED_PIN_8, LOW); digitalWrite(LED_PIN_9, LOW); - digitalWrite(LED_BUILTIN, LOW); + delay(500); } return; diff --git a/library.json b/library.json index 7b226d8..907a0d5 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "ENGR100-950", - "version": "1.1.3", + "version": "1.1.4", "keywords": "Arduino,library", "description": "UMich ENGR 100-950 Library", "repository": { diff --git a/library.properties b/library.properties index 5ea8eb3..860d376 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ENGR100-950 -version=1.1.3 +version=1.1.4 author=Benjamen Miller maintainer=Benjamen Miller sentence=UMich ENGR 100-950 Library