Closed shinncchen closed 10 years ago
You can parse arguments with the python module argparse. It does produce a much cleaner code. Below is an example on how to use it.
https://github.com/smithje/RGB_LED_Driver/blob/master/RGB_Driver.py
Ok, just switched to argument parser; the code is indeed cleaner, thanks!
You can parse arguments with the python module argparse. It does produce a much cleaner code. Below is an example on how to use it.
https://github.com/smithje/RGB_LED_Driver/blob/master/RGB_Driver.py