Skip to content

Instantly share code, notes, and snippets.

@xillwillx
Created January 23, 2019 01:11
Show Gist options
  • Save xillwillx/97a9fa7e10fc0d5bcca8f717bf76e904 to your computer and use it in GitHub Desktop.
Save xillwillx/97a9fa7e10fc0d5bcca8f717bf76e904 to your computer and use it in GitHub Desktop.
Pwnp1 ALOA with OLED
ssh root@172.16.0.1
nano /boot/config.txt
ctrl+w to find
Type: i2c_arm and add the uncommented lines underneath
## i2c_arm
## Enable the ARM's i2c interface
##
## Default off.
##
dtparam=i2c_arm=on
dtparam=i2c1=on
ctrl+w to find
Type: dtparam=spi
## spi
## Set to "on" to enable the spi interfaces
##
## Default off.
##
#dtparam=spi=off
dtparam=spi=on
ctrl+x
Y+enter
reboot
Once rebooted connect to http://172.16.0.1:8000/#/wifi in browser
Change 'Working Mode' to 'Client' and add your SSID and password then hit Deploy button to connect the Pi online
ssh root@172.16.0.1
apt install python-dev python-pip libfreetype6-dev libjpeg-dev -y
pip install --upgrade pip
apt clean
pip install --upgrade luma.oled
git clone https://github.com/beboxos/P4wnP1_ALOA_OLED_MENU_V2.git ~/BeBoXGui
echo "python ~/BeBoXGui/runmenu.py &" &>>/usr/local/P4wnP1/scripts/startup.sh
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment