8
votes
Split flap clock stepper code
Follow Useful PEP8 Style Guide Suggestions
For example:
Add docstrings for each module and "public" functions. Either in the function docstring, or a function comment or type hints let ...
8
votes
Simple TimeStamp class in Python
First, I want to point out that leap seconds exist, which means a day is not necessarily guaranteed to be exactly 86400 seconds. If you're aware of this and have determined your use case does not ...
6
votes
Accepted
Split flap clock stepper code
Quick thoughts
Logging
You have explicitly said you are using Micropython, and that must be the reason why you did not use the logging module. There are lightweight alternatives though (Google search),...
5
votes
Split flap clock stepper code
A few notes:
There are no documentation comments.
You have one case of inconsistent indentation. Not a big deal.
It's unusual to have your from machine import Pin ...
4
votes
Split flap clock stepper code
The first thing I see missing from your .py files is ...
Documentation
The PEP 8 style guide recommends
adding docstrings for classes and functions. You can also ...
Only top scored, non community-wiki answers of a minimum length are eligible