diff --git a/calcsetup.sh b/calcsetup.sh index 9fe5dfd..beb18ed 100644 --- a/calcsetup.sh +++ b/calcsetup.sh @@ -47,31 +47,35 @@ wget https://raw.githubusercontent.com/adafruit/Adafruit-DPI-Kippah/master/dt-bl sudo cp dt-blob.bin /boot/ sleep 1 -sudo echo "# Disable spi and i2c, we need these pins." >> /boot/config.txt -sudo echo "dtparam=spi=off" >> /boot/config.txt -sudo echo "dtparam=i2c_arm=off" >> /boot/config.txt -sudo echo "" >> /boot/config.txt -sudo echo "# Set screen size and any overscan required" >> /boot/config.txt -sudo echo "overscan_left=0" >> /boot/config.txt -sudo echo "overscan_right=0" >> /boot/config.txt -sudo echo "overscan_top=0" >> /boot/config.txt -sudo echo "overscan_bottom=0" >> /boot/config.txt -sudo echo "framebuffer_width=800" >> /boot/config.txt -sudo echo "framebuffer_height=480" >> /boot/config.txt -sudo echo "" >> /boot/config.txt -sudo echo "# enable the DPI display" >> /boot/config.txt -sudo echo "enable_dpi_lcd=1" >> /boot/config.txt -sudo echo "display_default_lcd=1" >> /boot/config.txt -sudo echo "" >> /boot/config.txt -sudo echo "# set up the size to 800x480" >> /boot/config.txt -sudo echo "dpi_group=2" >> /boot/config.txt -sudo echo "dpi_mode=87" >> /boot/config.txt -sudo echo "" >> /boot/config.txt -sudo echo "# set up the hsync/vsync/clock polarity and format" >> /boot/config.txt -sudo echo "dpi_output_format=454661" >> /boot/config.txt -sudo echo "" >> /boot/config.txt -sudo echo "# set up the size to 800x480" >> /boot/config.txt -sudo echo "hdmi_timings=800 0 40 48 88 480 0 13 3 32 0 0 0 60 0 32000000 6" >> /boot/config.txt +touch tmpboot.txt + +echo "# Disable spi and i2c, we need these pins." >> tmpboot.txt +echo "dtparam=spi=off" >> tmpboot.txt +echo "dtparam=i2c_arm=off" >> tmpboot.txt +echo "" >> tmpboot.txt +echo "# Set screen size and any overscan required" >> tmpboot.txt +echo "overscan_left=0" >> tmpboot.txt +echo "overscan_right=0" >> tmpboot.txt +echo "overscan_top=0" >> tmpboot.txt +echo "overscan_bottom=0" >> tmpboot.txt +echo "framebuffer_width=800" >> tmpboot.txt +echo "framebuffer_height=480" >> tmpboot.txt +echo "" >> tmpboot.txt +echo "# enable the DPI display" >> tmpboot.txt +echo "enable_dpi_lcd=1" >> tmpboot.txt +echo "display_default_lcd=1" >> tmpboot.txt +echo "" >> tmpboot.txt +echo "# set up the size to 800x480" >> tmpboot.txt +echo "dpi_group=2" >> tmpboot.txt +echo "dpi_mode=87" >> tmpboot.txt +echo "" >> tmpboot.txt +echo "# set up the hsync/vsync/clock polarity and format" >> tmpboot.txt +echo "dpi_output_format=454661" >> tmpboot.txt +echo "" >> tmpboot.txt +echo "# set up the size to 800x480" >> tmpboot.txt +echo "hdmi_timings=800 0 40 48 88 480 0 13 3 32 0 0 0 60 0 32000000 6" >> tmpboot.txt + +sudo cat tmpboot.txt >> /boot/config.txt # Install X server, DM, WM, vim (for some reason), and python stuff sudo apt install vim xorg lightdm ratpoison idle3 python3-matplotlib -y