GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rytilahti/python-nucled: Python interface for intel_nuc_led kernel driver

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
nucled
nucled
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

Python interface for intel_nuc_led kernel driver

Some newer Intel NUCs support software controlled ring and power LEDs, which are supported under Linux with a kernel module found in https://github.com/milesp20/intel_nuc_led .

This repository provides a simple python interface and a command-line tool using it.

Preparation

See https://github.com/milesp20/intel_nuc_led for supported devices and instructions how to set-up the kernel driver.

Command-line interface

$ nucled

== Ring LED ==
Brightness: 50
Color: Color.Red
Effect: Effect.Solid
Usage: nucled [OPTIONS] COMMAND [ARGS]...

  Control LEDs of Intel NUC computers.

Options:
  --ring   Control ring led
  --power  Control power led
  --help   Show this message and exit.

Commands:
  brightness  Get or set brightness [0,100].
  color       Get or set color.
  effect      Get or set effect.
  notify      Change the LED settings for a duration.
  raw         Write raw string, useful for testing.
  status      Print current values for the led.

Library interface

Use either Ring or Power class for initialization. All changes are done with property setters, and are first applied when calling set_state(). Alternatively you can let context manager to handle this for you, e.g.,

from nucled import Ring, Color, Effect

with Ring() as ring:
    print("Current state: %s" % ring)
    ring.color = Color.Green
    ring.effect = Effect.FadeMedium

About

Python interface for intel_nuc_led kernel driver

Topics

intel-nucledled-controllerpython

Resources

Readme
Activity

Stars

3 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.