Inspired by: https://github.com/diehardsk/Volumio-OledUI
This code is a "remote"-version of Maschine2501/NR1-UI.
The Idea behind it:
A wireless remote control with SSD1309 SPI Display (128x64) Display and a Raspberry Pi Zero W with a Battery-Pack.
The Project is in an early stage... so be patient ;)
1st - Download Image: Raspbian Images
2nd - flash it to the SD-Card: Use "Win32Diskimager"
3rd - Go to the "root" folder of the SD Card
-
Open "config.txt" -> remove the "#" before "dtparam=spi=on" to activate SPI
-
make a new textfile called "ssh" -> no .txt at the end!
-
Make a new textfile called "wpa_supplicant.conf" -> put this text in it, and edit it for your case:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="NETWORK-NAME"
psk="NETWORK-PASSWORD"
}
4th - remove SD Card, put it in your Pi Zero and let it boot (takes a few minutes)
5th - Connect to the Pi Zero with SSH (Putty/Kitty) (User: pi / PW: raspberry)
sudo dpkg-reconfigure tzdata
sudo apt-get update
sudo apt install python3-pip
sudo pip3 install -U pip
sudo pip3 install -U setuptools
sudo apt-get install -y python3-dev python3-setuptools python3-pip libfreetype6-dev libjpeg-dev build-essential python-rpi.gpio python3-rpi.gpio libopenjp2-7-dev libtiff5 libcurl4-openssl-dev libssl-dev git
sudo pip3 install --upgrade setuptools pip wheel
sudo pip3 install socketIO-client
pip3 install luma.oled
sudo pip3 install pycurl
git clone https://github.com/Maschine2501/RC2-UI.git
chmod +x ~/RC2-UI/rc2ui.py
sudo cp ~/RC2-UI/rc2ui.service /lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable rc2ui.service
sudo reboot
sudo journalctl -fu rc2ui.service
cd
sudo rm -r RC2-UI
sudo systemctl disable rc2ui.service