Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImportError
#3
#!/usr/bin/python3
import arduino
def loop():
 contin = True
 while contin:
  quitstatement = input()
  if quitstatement == false:
  else:
   arduino.send()
   contin = false
 pass
def main():
 arduino.connect()
 loop()
 arduino.disconnect()
if __name__ == "__main__":
 main()
That is the code that was provided by a professor, who did not give any other instructions regarding installing a module. 
Thank you very much, being new to programming can be tough!
Reply


Messages In This Thread
ImportError - by cbrown1913 - Oct-30-2016, 11:00 PM
RE: ImportError - by micseydel - Oct-30-2016, 11:04 PM
RE: ImportError - by cbrown1913 - Oct-30-2016, 11:10 PM
RE: ImportError - by micseydel - Oct-30-2016, 11:35 PM
RE: ImportError - by Larz60+ - Oct-30-2016, 11:43 PM
RE: ImportError - by cbrown1913 - Oct-31-2016, 12:08 AM
RE: ImportError - by Larz60+ - Oct-31-2016, 12:19 AM
RE: ImportError - by micseydel - Oct-31-2016, 01:26 AM
RE: ImportError - by Larz60+ - Oct-31-2016, 04:36 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020