Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: kritishmohapatra/micropython-sevenseg

v1.1.0 – Optimized logic & DP fix

16 Jan 12:09

Choose a tag to compare

🚀 micropython-sevenseg v1.1.0

A stable and optimized release of the micropython-sevenseg library, providing a clean and efficient way to control single-digit 7-segment displays using MicroPython.


✨ What’s New

⚡ Performance & Logic Improvements

  • Optimized GPIO control using XOR logic
    (pin.value(seg_on ^ common_anode))
  • Reduced conditional branching for faster execution
  • Cleaner and more readable segment control logic

🔴 Decimal Point (DP) Fix

  • Corrected DP behavior for both common anode and common cathode displays
  • Reliable ON/OFF control for even and odd digit logic

🧹 Code Quality

  • Improved inline comments and docstrings
  • Better structured and documented source code
  • Safer input validation and clearer error messages

📚 Documentation Updates

  • Enhanced README with:
    • Clear installation steps
    • Board-specific usage examples (ESP32, ESP8266, Raspberry Pi Pico)
    • Wiring and pin-mapping guidance
  • Added professional module-level documentation header

🌍 Community Contributions

  • Incorporated optimization suggestions from MicroPython community contributors
  • Improved API clarity based on reviewer feedback

🧩 Compatibility

Tested and verified with:

  • ESP32
  • ESP8266
  • Raspberry Pi Pico / Pico W
  • Other MicroPython-compatible boards

📦 Installation

pip install micropython-sevenseg

🔗 Links

PyPI: https://pypi.org/project/micropython-sevenseg/1.1.0/

GitHub: https://github.com/kritishmohapatra/micropython-sevenseg

👤 Author

Kritish Mohapatra
📧 [email protected]