GithubHelp home page GithubHelp logo

cm3588-oled-screen's Introduction

cm3588-oled-screen

OLED screen support for CM3588 NAS Kit

Basic info

It's working on Armbian with a minor tweak to enable I2C. In case of CM3588 NAS Kit, it's I2C-8.

I haven't found a way to enable I2C on any of the official system images (OMV/Debian/Ubuntu). If you know how to do that, please let me know.

The issue with Armbian is that it's installed on SD card and I don't know how to install it on eMMC. Again, if you know how to do that, please let me know :)

To enable I2C in Armbian, I had to:

  • make copy of /boot/dtb-6.1.43-vendor-rk35xx/rockchip/overlay/rk3588-i2c8-m2.dtbo as /boot/dtb-6.1.43-vendor-rk35xx/rockchip/overlay/rockchip-rk3588-i2c 8-m2.dtbo to make it "visible" by the config
  • add overlays=i2c8-m2 to /boot/armbianEnv.txt

Once system is rebooted, the I2C-8 should be accessible.

Installation

There's no installation script yet, sorry ;)

You need to work as root.

Clone this repo to /opt/oled-screen/ directory: cd /opt && git clone https://github.com/ppsx/cm3588-oled-screen oled-screen

Get into the dir: cd oled-screen

Create Python's venv: python -m venv venv

Activate it: source venv/bin/activate

Install dependencies: pip install -r requirements.txt

Copy *.service file to systemd dir: cp oled-screen.service /etc/systemd/system/

Reload systemd: systemctl daemon-reload

Start the service: systemctl start oled-screen

If everything is ok, the service has to be enabled to start after booting: systemctl enable oled-screen That's it.

More info

When system is booting and oled-screen service is started, it shows nice boot logo animation. Then System ready is printed. The "User button" is used to switch between different "pages". Each page contains some basic info about: CPU utilization (CPU), memory and swap (MEM), disk (system disk and NVMe) and network (eth0). After one minute of inactivity the screen is turned off. User button brings it back to the first page (CPU).

Preview

oled-screen.mov

cm3588-oled-screen's People

Contributors

ppsx avatar

Stargazers

Vinod Ponmanadiyil avatar

Watchers

 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.