Skip to content

zsoltiv/libhwpwm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libhwpwm

An easy to use library to communicate with the Linux kernel's sysfs PWM interface.

Documentation

libhwpwm is documented using man-pages. See man 3 libhwpwm.h

Requirements

  • A Linux system
  • make
  • C99 compiler
  • scdoc for generating man-pages

Accessing PWMs without root

libhwpwm only exposes the sysfs interface as an easy to use C API, it does not handle permissions.

In order to run programs that use libhwpwm without being root, you can use a udev rule like this:

SUBSYSTEM=="pwm", MODE="0666"

This rule would allow any user to run programs using this library.

Warning

It's probably not a good idea to grant global R/W access to sysfs nodes.

About

An easy to use library to communicate with the Linux kernel's sysfs PWM interface.

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

 
 
 

Contributors