Commit cd73d772 authored by Lucio's avatar Lucio

partial week11

parent 0becb0b2
Pipeline #166585 passed with stage
in 37 seconds
......@@ -13,3 +13,9 @@ media/week12/solidworks/small_Mold_b^negative_mold.SLDPRT
media/week12/solidworks/small_mold_a.SLDPRT
media/week12/solidworks/Plucker_small_positive.SLDPRT
media/week12/solidworks/Positive.SLDPRT
media/week09/eagle/eaglefilestinyboard/tiny.brd
media/week09/eagle/eaglefilestinyboard/tiny.sch
media/week11/16.png
media/week11/4.png
*.b#1
*.s#1
This diff is collapsed.
#include <virtuabotixRTC.h>
virtuabotixRTC myRTC(5, 18, 19);// (CLK,DAT,RST)
int pumprelayPin1 = 22;
void setup() {
Serial.begin(115200);
// myRTC.setDS1302Time(00, 28, 16, 6, 23, 5, 2020); // sets seconds, minutes, hours (24h mode), day of the week, day, month, year) comment after first compile
pinMode(pumprelayPin1, OUTPUT);
}
void loop() {
myRTC.updateTime();//updates time
Serial.print("Current Time: ");
Serial.print(myRTC.hours);
Serial.print(":");
Serial.print(myRTC.minutes)
delay (60000);
if ((myRTC.hours) == 15 || (myRTC.minutes) == 0) {digitalWrite(pumprelayPin1, HIGH)}
if ((myRTC.hours) >= 15 || (myRTC.minutes) >= 1) {digitalWrite(pumprelayPin1, LOW)}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment