Skip to content

Instantly share code, notes, and snippets.

@Magma5
Magma5 / lcd.py
Last active March 29, 2023 20:11
LCD emulator
from lcd_api import LcdApi
import sys
class LcdEmulator(LcdApi):
"""Implements a HD44780 character LCD connected via PCF8574 on I2C."""
def __init__(self, num_lines, num_columns):
LcdApi.__init__(self, num_lines, num_columns)
def _clear_data(self):
self.data = [0] * self.num_lines * self.num_columns
@Magma5
Magma5 / zero.py
Created August 14, 2024 16:38
Zero
"""
Enterprise Integer Zero Service (EIZService)
============================================
A robust, scalable, and enterprise-grade Python solution for returning the integer 0.
Designed with cutting-edge software architecture principles to ensure maximum reliability,
maintainability, and flexibility.
Author: Magma5
Version: 1.0.0