Coder Social home page Coder Social logo

supdrewin / rgb-cooling-hat Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 87 KB

RGB Cooling HAT advanced utility for YB-EPV02 and it's SSD1306.

License: Mozilla Public License 2.0

Makefile 12.09% C++ 43.26% Shell 32.80% Rust 11.86%
cooling i2c oled-ssd1306 raspberry-pi userspace-driver rockpi rgb-led script linux services

rgb-cooling-hat's Introduction

RGB Cooling HAT

RGB Cooling HAT advanced utility for YB-EPV02 and it's SSD1306.

Features

  • Auto changes the fan speed according to current tempearture.
  • Full manager utility rgb-cooling-hat for fan/RGB control.
  • Provides I2C write (8/16 Bit) feature via i2cw command.
  • Show current Freq and Temp if OLED display available.

Usage

Type rgb-cooling-hat help to show information.

The custom RGB script is stored in /etc/rgb-cooling-hat/rgb, content insides this script will apply at boot.

Example content of /etc/rgb-cooling-hat/rgb:

cmdline rgb --select 1 --color 0xff0000
cmdline rgb --select 2 --color 0x00ff00
cmdline rgb --select 3 --color 0x0000ff

# If you want to close the RGB lighting, uncomment below.
# cmdline rgb --close

Note: Please DON'T push commands spend long time into rgb, otherwise it will block anything.

Pre-required

Hardware:

  • YB-EPV02 and compatable board (e.g. Raspberry Pi, Rock Pi...)
  • Enable I2C feature for GPIO pins (using device tree overlay)

Dependency:

  • bash
  • systemd (optional)
  • cargo (make)
  • git (make)

Install

  • Arch Linux

    change pwd into subdir AUR, then using makepkg:

    $ makepkg -csi
  • Others

    Install all files:

    $ make install

    Optional enable the fan control service:

    $ systemctl enable --now rgb-cooling-hat

    and the OLED display service:

    $ systemctl enable --now rgb-cooling-hat.oled

Uninstall

If you enable the systemd services previous, firstly disable them:

$ systemctl disable --now rgb-cooling-hat
$ systemctl disable --now rgb-cooling-hat.oled

Uninstall all files:

$ make uninstall

License

This repository is unofficial and working myself, all code of this repository are under MPL-2.0, so any modifies should be open source.

rgb-cooling-hat's People

Contributors

supdrewin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

rgb-cooling-hat's Issues

Using this HAT with HomeAssitant

Hi, I've been trying to make this HAT work with Home Assistant, but i don't even know where to start. Do you have any Idea how to make this work with Home Assistant OS installed on a Raspberry Pi 4?

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.