Skip to main content
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 ...
Booboo's user avatar
  • 4,101
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 ...
Sara J's user avatar
  • 4,221
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),...
Kate's user avatar
  • 8,778
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 ...
Chris's user avatar
  • 6,126
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 ...
toolic's user avatar
  • 16.4k

Only top scored, non community-wiki answers of a minimum length are eligible