Advertisement
silver2row

.c and /sys/class/leds/.../.../...

Mar 13th, 2022
1,193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. void gpio_write( struct Gpio const *gpio, bool brightness ); // This was in sysfs-gpio.h
  2.  
  3. char c = _gpio_read_attribute( gpio, "brightness" ); // This was in sysfs-gpio.c
  4.  
  5. // I have seen other attributes to change but I am not sure of their errors or the prone of errors w/ these methods...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement