Skip to content

Commit 6ebd2cf

Browse files
committed
led light flashes for water detection
1 parent c59efcb commit 6ebd2cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Power Board/thrusters.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ void powerSystem() {
9898

9999
void waterInterrupt() {
100100
killSystem();
101-
while (true) {}
101+
while (true) {
102+
digitalWrite(TEENSY_LED, HIGH);
103+
delay(500);
104+
digitalWrite(TEENSY_LED, LOW);
105+
delay(500);
106+
}
102107
}
103108

104109
void senseCurrent(float Tcurrents[]) {
@@ -130,6 +135,7 @@ void setup() {
130135
pinMode(TC_8, INPUT);
131136
pinMode(VBAT1_SENSE, INPUT);
132137
pinMode(VBAT2_SENSE, INPUT);
138+
pinMode(TEENSY_LED, OUTPUT);
133139

134140
//attachInterrupt(digitalPinToInterrupt(WATER_DETECTED), waterInterrupt, RISING);
135141

0 commit comments

Comments
 (0)