Results 1 to 1 of 1
Thread: MCU
Hybrid View
-
26th November 2017 20:23 #1Registered User
Join Date: Jan:2017
Location: Bulgaria
Posts: 146
MCU
, Packet tracer, MCU- ( ). , . ( , ) .
/ , , LCD- .
?
.
Python, , , ?
from time import *
from gpio import *
def main():
pinMode(0, IN)
pinMode(1, IN)
while True:
if digitalRead(0) == HIGH:
customWrite (0,2);
elif digitalRead(1) == HIGH:
customWrite (1,2);
else :
customWrite (0,0);
delay(500)
if __name__ == "__main__":
main()




Reply With Quote
LOG
6th May 2023, 12:03 in