ULED(4)
β¨ ULED(4) β¨
okay so bestie, gather round, because today we're talking about uled β the USB LED driver π yes, the manual page is called ULED(4), and yes, it's giving "tiny driver, main character energy" π
πΈ NAME πΈ
uled β USB LED driver π‘β¨
π¦ SYNOPSIS π¦
so if you wanna compile this driver into the kernel (she's built different, no cap), you drop these lines into your kernel configuration file:
device uled
device usb
alternatively β and this is the lowkey easier route β to load the driver as a module at boot time, you put this line in loader.conf(5):
uled_load="YES"
periodt. that's it. π«Ά
π DESCRIPTION π
the uled driver provides support for the Dream Cheeky WebMail Notifier and the ThingM blink(1) notification LED. π₯ like literally little LEDs that tell you stuff. iconic.
subsequently, the /dev/uled0 device can be used by userland applications. so your apps can talk to it. slay. π
π IOCTLS π
the following ioctl(2) commands can be performed on /dev/uled0, which are defined in <dev/usb/uled_ioctl.h>:
ULED_GET_COLORβ this command returns LED colors with values for RGB π. thisioctl(2)takes the following structure:
struct uled_color {
uint8_t red;
uint8_t green;
uint8_t blue;
};
ULED_SET_COLORβ this command sets LED colors with values for RGB π¨. it uses the same structure as above. same vibe, different direction, iykyk.
π FILES π
/dev/uled0β blocking device node π (yes, blocking, bestie, read it and weep)
π SEE ALSO π
ohci(4), uhci(4), usb(4) β go read these too, they're the supporting cast π«Ά
π AUTHORS π
the uled driver was written by Kevin Lo <kevlo@FreeBSD.org> π absolute legend behaviour.
ngl bestie, that's the whole page. no cap, no missing flags, nothing skipped. π
cute little sign-off: this slice of manual-page realness comes to you from Debian, dated March 31, 2017 πΈ β and that's the vibe check, passed with flying colours π¦β¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2014 Kevin Lo
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms