initial commit
This commit is contained in:
43
firmware/sketch_aug21a/sketch_aug21a.ino
Normal file
43
firmware/sketch_aug21a/sketch_aug21a.ino
Normal file
@@ -0,0 +1,43 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
#define IO_out20mA 36
|
||||
#define IO_inADC 39
|
||||
#define IO_ledWifi 34
|
||||
#define IO_led1000mA 35
|
||||
#define IO_led200mA 32
|
||||
#define IO_led20mA 33
|
||||
#define IO_ledAuto 25
|
||||
#define IO_ledOpen 26
|
||||
#define IO_ledOK 27
|
||||
#define IO_ledError 14
|
||||
#define IO_in400mE 12
|
||||
#define IO_buzzer 13
|
||||
#define IO_inOV 15
|
||||
#define IO_in200mE 2
|
||||
#define IO_butAuto 4
|
||||
#define IO_inOc 16
|
||||
#define IO_but1000mA 17
|
||||
#define IO_but20mA 5
|
||||
#define IO_but200mA 18
|
||||
#define IO_out1000mA 19
|
||||
#define IO_i2cSDA 21
|
||||
#define IO_RX 3
|
||||
#define IO_TX 1
|
||||
#define IO_i2cSDC 22
|
||||
#define IO_out200mA 23
|
||||
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
pinMode(IO_buzzer, OUTPUT);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
while(1)
|
||||
{
|
||||
digitalWrite(IO_buzzer, HIGH); // sets the digital pin 13 on
|
||||
delay(100); // waits for a second
|
||||
digitalWrite(IO_buzzer, LOW); // sets the digital pin 13 off
|
||||
delay(1000); // waits for a second
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user