Close

Firmware Update #2

A project log for 2021 HDP Dream Team: EJA

Learn more about Team EJA's intelligent buoy, and how their solution will help the global fight against ghost gear.

oluwatobi-oyinlolaOluwatobi Oyinlola 08/25/2020 at 12:350 Comments

A quick test to see if the connections on the gateway are accurate so, we try to blink all the LED just to see it blink and be sure they are all working

Here is the code.

#define LED1 22
#define LED2 5
#define LED3 16
#define LED4 17
 
void setup() {
  // Set pin mode
  pinMode(LED1,OUTPUT);
  pinMode(LED2,OUTPUT);
  pinMode(LED3,OUTPUT);
  pinMode(LED4,OUTPUT);
}
 
void loop() {
  delay(500);
  digitalWrite(LED1,HIGH);
  delay(500);
  digitalWrite(LED1,LOW);
  delay(500);
  digitalWrite(LED2,HIGH);
  delay(500);
  digitalWrite(LED2,LOW);
  delay(500);
  digitalWrite(LED3,HIGH);
  delay(500);
  digitalWrite(LED3,LOW);
  delay(500);
  digitalWrite(LED4,HIGH);
  delay(500);
  digitalWrite(LED4,LOW);
}

And blink result for the above code was tested by Erin, she also share the picture of the test here

Discussions