Advertisement
mikroavr

genset_pln_sts

Aug 16th, 2023
985
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const byte pin_pln = 36;
  2. const byte pin_genset = 39;
  3.  
  4.  
  5. void setup() {
  6.   // put your setup code here, to run once:
  7.   Serial.begin(115200);
  8.   pinMode(pin_pln, INPUT);
  9.   pinMode(pin_genset, INPUT);
  10. }
  11.  
  12. void loop() {
  13.   // put your main code here, to run repeatedly:
  14.   Serial.print("pln: ");
  15.   Serial.println(digitalRead(pin_pln);
  16.   Serial.print("genset: ");
  17.   Serial.println(digitalRead(pin_genset);
  18.   delay(1000);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement