void loop () decleration problem
hi guys,
1. if define digitalwrite(in1,high) , want make low in loop. possible?
2. if possible whenever void loop() function executes once lets have set digitalwrite(in1,low), happen if loop starts again set in1 high defined in setup or writes low because declared low in first execution?
3. or program executes void setup() function once while loop executed continiosly? may impossible set pin different state if declared in setup function :~
1. if define digitalwrite(in1,high) , want make low in loop. possible?
2. if possible whenever void loop() function executes once lets have set digitalwrite(in1,low), happen if loop starts again set in1 high defined in setup or writes low because declared low in first execution?
3. or program executes void setup() function once while loop executed continiosly? may impossible set pin different state if declared in setup function :~
1: yes
2: remain low
3: yes.
take @ "main.cpp" in arduino's ide files - you'll see how works:
2: remain low
3: yes.
take @ "main.cpp" in arduino's ide files - you'll see how works:
code: [select]
setup();
(;;) {
loop();
if (serialeventrun) serialeventrun();
}
Arduino Forum > Using Arduino > Programming Questions > void loop () decleration problem
arduino
Comments
Post a Comment