This repository contains lightweight C drivers for the WCH CH55x series, optimized for the SDCC compiler.
Key Feature: These drivers demonstrate cross-architecture porting, bringing logic originally developed for the ESP32-S3 down to the 8-bit E8051 core with minimal memory overhead.
Note: Uses a bit-banged or hardware I2C implementation depending on pin availability.
| LCD Pin | CH552 Pin | Function |
|---|---|---|
| SDA | P1.6 | Data (MISO) |
| SCL | P1.7 | Clock (SCK) |
| VCC | 5V / 3.3V | Check your LCD variant |
Note: This driver handles the custom 2-wire serial protocol required by the TM1637 without dedicated hardware peripherals.
| TM1637 Pin | CH552 Pin | Function |
|---|---|---|
| CLK | P3.3 | Clock |
| DIO | P3.4 | Data I/O |