Difference between revisions of "Raspberry PWM LED Control"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
see {{Link|target=Self_Driving_RC_Car#Servo Interface - Servoblaster}} | see {{Link|target=Self_Driving_RC_Car#Servo Interface - Servoblaster}} | ||
+ | GPIO 24 has ServoId 6 so | ||
<source lang='bash'> | <source lang='bash'> | ||
echo 6=120 > /dev/servoblaster | echo 6=120 > /dev/servoblaster | ||
</source> | </source> | ||
+ | will set the LED to half bright | ||
[[Category:Raspberry]] | [[Category:Raspberry]] |
Revision as of 17:31, 22 June 2019
We'll use GPIO 24/ Pin 18 to drive the LED as in the default configuration of rc-dukes.
see Self_Driving_RC_Car#Servo Interface - Servoblaster
GPIO 24 has ServoId 6 so
echo 6=120 > /dev/servoblaster
will set the LED to half bright