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
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.