With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Thanks, it works!!! I am trying now to add the data to a csv file. Thank you for all the help again!
Hello Elecronut,Thank you for the code. I am very new to this, so I have been facing quite a few issues with running the code. I keep getting errors while running the argparse command. I replaced port with COM3 like below, but keep getting errors!def main(): # create parser parser = argparse.ArgumentParser(description="LDR serial") # add expected arguments parser.add_argument('--COM3', dest='COM3', required=True)Error in python:usage: test_python.py [-h] --COM3 COM3test_python.py: error: argument --COM3 is requiredMy problem is I am not sure where to replace strPort or port with COM3.Please help!Thanks!Ritwika
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.