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:
- pinMode(pin_pln, INPUT);
- pinMode(pin_genset, INPUT);
- Serial.begin(115200);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- bool dt_pln = digitalRead(pin_pln);
- bool dt_genset = digitalRead(pin_genset);
- Serial.print("pln: ");
- Serial.print(dt_pln);
- Serial.print(", genset: ");
- Serial.print(dt_genset);
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement