Raspberry PWM LED Control: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
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 16:31, 22 June 2019

We'll use GPIO 24/ Pin 18 to drive the LED as in the default configuration of rc-dukes.

Raspberry-pi-pinout.png

PILEDPWM-2019-06-21.png

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