Giter Club home page Giter Club logo

u6143_ssd1306_ubuntu's Introduction

U6143_ssd1306 Driver for Ubuntu ARM64 (Raspberry Pi) & Install Script

forked from UCTRONICS/U6143_ssd1306

SSD1306 Modified Driver and Installer Script for UCTRONICS U6143 Raspberry Pi Rackmount Case. Modified source project to display temps in Celsius and dynamically configure system hostname in header file using installer script. Installer script also configures systemd rc-local functionality and enables OLED screen using the modified parameters at boot.

Installing

Download installer script, set executable, and run with Bash: For now - run as root!

sudo -i
wget https://raw.githubusercontent.com/brad07x/U6143_ssd1306_ubuntu/master/install.sh
chmod +x install.sh
./install.sh

Original Project Readme


U6143_ssd1306

Preparation

sudo raspi-config

Choose Interface Options Enable i2c

Clone U6143_ssd1306 library

git clone https://github.com/UCTRONICS/U6143_ssd1306.git

Compile

cd U6143_ssd1306/C
sudo make clean && sudo make 

Run

sudo ./display

Add automatic start script

  • Open the rc.local file
sudo nano /etc/rc.local
  • Add command to the rc.local file
cd /home/pi/U6143_ssd1306/C
sudo make clean 
sudo make 
sudo ./display &
  • reboot your system

For older 0.91 inch lcd without mcu

  • For the older version lcd without mcu controller, you can use python demo
  • Install the dependent library files
sudo pip3 install adafruit-circuitpython-ssd1306
sudo apt-get install python3-pip
sudo apt-get install python3-pil
  • Test demo
cd /home/pi/U6143_ssd1306/python 
sudo python3 ssd1306_stats.py

Custom display temperature type

  • Open the U6143_ssd1306/C/ssd1306_i2c.h file. You can modify the value of the TEMPERATURE_TYPE variable to change the type of temperature displayed. (The default is Fahrenheit) EasyBehavior

Custom display IPADDRESS_TYPE type

  • Open the U6143_ssd1306/C/ssd1306_i2c.h file. You can modify the value of the IPADDRESS_TYPE variable to change the type of IP displayed. (The default is ETH0) EasyBehavior

Custom display information

  • Open the U6143_ssd1306/C/ssd1306_i2c.h file. You can modify the value of the IP_SWITCH variable to determine whether to display the IP address or custom information. (The custom IP address is displayed by default) EasyBehavior

u6143_ssd1306_ubuntu's People

Contributors

uctronics avatar arducam avatar ljp-while avatar brad07x avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.