uled (4)
Leading comments
Copyright (c) 2014 Kevin Lo All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other mat...
NAME
uled - USB LED driverSYNOPSIS
To compile this driver into the kernel, place the following lines into your kernel configuration file:device uled device usb
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf5:
uled_load="YES"
DESCRIPTION
The driver provides support for the Dream Cheeky WebMail Notifier device.Subsequently, the /dev/uled0 device can be used by userland applications.
IOCTLS
The following ioctl(2) commands can be performed on /dev/uled0 which are defined in In dev/usb/uled_ioctl.h :- ULED_GET_COLOR
-
The command returns LED colors with values for RGB.
This
ioctl(2)
takes the following structure:
struct uled_color { uint8_t red; uint8_t green; uint8_t blue; };
- ULED_SET_COLOR
- The command sets LED colors with values for RGB. It uses the same structure as above.
FILES
- /dev/uled0
- blocking device node