Remove obsolete audio and buzzer control documentation files, including detailed guides and HTML interfaces, to streamline the repository and eliminate redundancy. This cleanup enhances maintainability and focuses on essential resources for the reTerminal DM4 audio and buzzer functionalities.

This commit is contained in:
nearxos
2026-02-20 15:39:39 +02:00
parent 9656771d5a
commit 58d9144752
101 changed files with 80 additions and 193 deletions

View File

@@ -0,0 +1,60 @@
#!/bin/bash
# LED Test Script for reTerminal DM4
LED_PATH='/sys/class/leds/usr-led/brightness'
echo "Testing reTerminal DM4 LED"
echo "=========================="
echo ""
# Test 1: Turn ON
echo "Test 1: Turning LED ON..."
echo 1 | sudo tee $LED_PATH > /dev/null
sleep 1
echo "LED should be ON now"
echo ""
# Test 2: Turn OFF
echo "Test 2: Turning LED OFF..."
echo 0 | sudo tee $LED_PATH > /dev/null
sleep 1
echo "LED should be OFF now"
echo ""
# Test 3: Blink pattern
echo "Test 3: Blinking LED (5 times)..."
for i in {1..5}; do
echo 1 | sudo tee $LED_PATH > /dev/null
sleep 0.2
echo 0 | sudo tee $LED_PATH > /dev/null
sleep 0.2
done
echo ""
# Test 4: Fast blink
echo "Test 4: Fast blink (10 times)..."
for i in {1..10}; do
echo 1 | sudo tee $LED_PATH > /dev/null
sleep 0.1
echo 0 | sudo tee $LED_PATH > /dev/null
sleep 0.1
done
echo ""
# Test 5: Slow blink
echo "Test 5: Slow blink (3 times)..."
for i in {1..3}; do
echo 1 | sudo tee $LED_PATH > /dev/null
sleep 0.5
echo 0 | sudo tee $LED_PATH > /dev/null
sleep 0.5
done
echo ""
# Ensure LED is off
echo 0 | sudo tee $LED_PATH > /dev/null
echo "LED test complete!"
echo ""
echo "Current LED status:"
cat $LED_PATH && echo " (0 = OFF, 1 = ON)"