Initial commit: PRU LED firmware and HTTP service

- Combined PRU0 firmware for both mood (56 LED) and jaw (24 LED) strips
- Uses P9_27 and P9_25 (free pins, not HDMI locked)
- Python HTTP service on port 8765
- Named states: idle, listening, responding, pleasure, thinking, playful, commanding, love, sleep
- Setup scripts for fresh BBB deployment

Built with love by Vixy 🦊💜
This commit is contained in:
2026-01-29 21:25:08 -06:00
commit ce4f46ec18
11 changed files with 714 additions and 0 deletions

23
setup-pi-nat.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Setup NAT on Pi 5 (head-vixy.local) to give BBB internet access
# Run this on the Pi
set -e
echo "🦊 Setting up NAT for BBB..."
# Enable IP forwarding
sudo sysctl -w net.ipv4.ip_forward=1
echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.conf
# Setup NAT rules
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
# Make persistent (requires iptables-persistent)
sudo apt install -y iptables-persistent
sudo netfilter-persistent save
echo "✅ NAT configured!"
echo " Pi (wlan0) -> BBB (eth0 192.168.5.2)"