Code Monkey home page Code Monkey logo

nuclight's Introduction

This is a simple utility that allows control of the light array on the T9Plus Mini PC.

It's based on protocol discoveries made by 'fairedummy' in Reddit r/MiniPCs Dec 2023 in the thread `T9 Plus N100 - How to control LED'. Kudos to him.

It is released under the standard BSD 3-clause licence, SPDX-License-Identifier: BSD-3-Clause.

Building

You should be able to just build the utility directly with any reasonable set of tools on Linux. No specific libraries or setup are needed. Code was developed on Debian 12;

make

The resulting binary nuclight can be placed wherever is convinient.

Use

nuclight is used from the command line, and it's operation is pretty straightforward;

$nuclight -h
Usage: ./nuclight [options]
    -a, --serial-speed:  <serialSpeed> to use
    -b, --brightness:    <num> Brightness Level 1..5
    -h, --help:          This help
    -m, --mode:          <mode> 1=Rainbow  2=Breathing  3=Cycle  4=Off  5=Auto  
    -p, --serial-port:   <serialPort> to use
    -s, --speed:         <num> Speed 1..5
    -v, --verbose:       <level> Verbose mode 0(errors)..3(debug)
    -V, --version:       Print version and exit

So, for example, to turn the light off;

$nuclight -m 4

...or to set bright, slow, breathing;

$nuclight -m 2 -s 1 -b 5

nuclight's People

Contributors

mubes avatar

Stargazers

Robert Kist 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.