LED 7 segment i2c spi in userspace installed rk3318 X88 Pro 10 and Bqeel S1 MAX, CPU Amlogic S905X4
This repository contains code for controlling LED displays using the TM1650 chip on the I2C bus and the TM1628 chip on the SPI bus. Before using these displays, it is necessary to enable the I2C bus with Armbian-Configure. Additionally, you need to determine the GPIO pins used for the SPI bus by running the command cat /sys/kernel/debug/gpio
on your Android device. In this specific case, the GPIO pins were enabled as follows:
echo 82 > /sys/class/gpio/export
echo 83 > /sys/class/gpio/export
echo 86 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio82/direction
echo out > /sys/class/gpio/gpio83/direction
echo out > /sys/class/gpio/gpio86/direction
The TM1650 and TM1628 are integrated circuits designed to drive 7-segment LED displays. They communicate with the microcontroller using the I2C and SPI protocols, respectively. This repository provides code examples and libraries to control these displays.
To use the code in this repository, you'll need the following:
- Raspberry Pi or similar single-board computer
- Armbian OS installed on the board
- Python 3 installed
- I2C and SPI buses enabled on the board
Follow these steps to get started with controlling TM1650 and TM1628 displays:
-
Connect the TM1650 or TM1628 display to the appropriate GPIO pins on your board.
-
Enable the I2C bus on your board using Armbian-Configure. This will allow communication with the TM1650 display.
-
Determine the GPIO pins used for the SPI bus on your board by running the command
cat /sys/kernel/debug/gpio
on your Android device. -
install i2c-tools sudo apt install i2c-tools. scan i2c-bus, sudo i2cdetect -y x 0..?
-
Enable the necessary GPIO pins for the SPI bus using the provided commands. This will allow communication with the TM1628 display.
Contributions to this repository are welcome. If you have any improvements or bug fixes, feel free to submit a pull request.
This project is licensed under the MIT License.
For any questions or inquiries, please contact [email protected].