Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const byte pin_pln = 36;
- const byte pin_genset = 39;
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(115200);
- pinMode(pin_pln, INPUT);
- pinMode(pin_genset, INPUT);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- Serial.print("pln: ");
- Serial.println(digitalRead(pin_pln);
- Serial.print("genset: ");
- Serial.println(digitalRead(pin_genset);
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement