Small utility script to display TR4 system information on a 2.42" SSD1309 OLED
MIT License
Small utility script to display TR4 system information on a 2.42" SSD1309 OLED, connected to a USB port via an FT232H adapter.
sudo apt install libusb-1.0
# /etc/udev/rules.d/11-ftdi.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", GROUP="plugdev", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6011", GROUP="plugdev", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", GROUP="plugdev", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6014", GROUP="plugdev", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6015", GROUP="plugdev", MODE="0666"
sudo adduser $USER plugdev
it87
kernel module, and update /etc/modules to auto-load thesudo modprobe it87
echo "it87" | grep sudo tee -a /etc/modules
pipenv install -d
-h
to see all flags):pipenv run python tr4_monitor/main.py -f conf/pygame.conf
OLED Pin | OLED Name | FT232 Pin | FT232 Function | Remarks |
---|---|---|---|---|
1 | GND | GND | GND | Ground |
2 | VCC | +3.3V | 3V3 | +3.3V Power |
3 | SCL | AD0 | SCLK | Serial Clock |
4 | SDA | AD1 | MOSI | Serial Data |
5 | RES | AD6 | GPIO 6 | Reset |
6 | DC | AD5 | GPIO 5 | Data/Command |
7 | CS | AD3 | CE0 | Chip Select |