Skip to content

Commit 537c719

Browse files
Enable PWM for illumination LEDs on LL2 and LL3
1 parent 3b73ea2 commit 537c719

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

install_limelight.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ chmod +x ./install.sh
2323
install -m 644 limelight/config.txt /boot/firmware/
2424
install -m 644 userconf.txt /boot/firmware/
2525

26+
# link old config.txt location for diozero compatibility
27+
# TODO(thatcomputerguy0101): Remove this when diozero checks the new location
28+
ln -s /boot/firmware/config.txt /boot/config.txt
29+
2630
# install LL DTS
2731
dtc -O dtb limelight/gloworm-dt.dts -o /boot/firmware/dt-blob.bin
2832

install_limelight3.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ mkdir --parent /boot/firmware
1212
mount "${loopdev}p1" /boot/firmware
1313
ls -la /boot/firmware
1414

15+
# edit boot partition
16+
install -m 644 limelight/config.txt /boot/firmware/
17+
18+
# link old config.txt location for diozero compatibility
19+
# TODO(thatcomputerguy0101): Remove this when diozero checks the new location
20+
ln -sf /boot/firmware/config.txt /boot/config.txt
21+
1522
# Add the one extra file for the LL3
1623
wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/firmware/dt-blob.bin
1724

limelight/config.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ dtoverlay=vc4-kms-v3d
2626
dtparam=spi=on
2727
dtparam=audio=off
2828

29+
# Enable hardware PWM for LED control
30+
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
31+
2932
max_framebuffers=2
3033

3134
# Run in 64-bit mode

0 commit comments

Comments
 (0)