I have an Audrino Pi Hat on my Pi 3b+ It has a small oled display. I was trying to install a larger Nextion Display ~ I made it through all the screens and installed the files ~ I plugged the nexion display into the usb port and everything stays working. I changed the screen type to nextion and the usb port as directed and the pi shuts down and won't save anything.
I'm guessing its the small OLED display on the Pi Hat and I have no way to disable that .... Anyone come across this ?
Dual Displays ?
Re: Dual Displays ?
Not sure that this will help, but these command will disable or enable the OLED. Note that if this command disables the OLED, it will be re-enabled when services restart
disable: /usr/sbin/i2cset -y 1 0x3c 0x00 0xAE
enable: /usr/sbin/i2cset -y 1 0x3c 0x00 0xAF
status: /usr/sbin/i2cget -y 1 0x3c 0x00
or just add these lines to your ~/.bashrc:
alias oled_disable='/usr/sbin/i2cset -y 1 0x3c 0x00 0xAE'
alias oled_enable='/usr/sbin/i2cset -y 1 0x3c 0x00 0xAF'
alias oled_status='/usr/sbin/i2cget -y 1 0x3c 0x00 ; echo " 0x4X is off, 0x0X is on." '
disable: /usr/sbin/i2cset -y 1 0x3c 0x00 0xAE
enable: /usr/sbin/i2cset -y 1 0x3c 0x00 0xAF
status: /usr/sbin/i2cget -y 1 0x3c 0x00
or just add these lines to your ~/.bashrc:
alias oled_disable='/usr/sbin/i2cset -y 1 0x3c 0x00 0xAE'
alias oled_enable='/usr/sbin/i2cset -y 1 0x3c 0x00 0xAF'
alias oled_status='/usr/sbin/i2cget -y 1 0x3c 0x00 ; echo " 0x4X is off, 0x0X is on." '
Re: Dual Displays ?
If you're trying to connect the Nextion screen via a USB-TTL adapter, that won't work. It has to be connected directly to hat, same as the OLED. And my guess is that the PI thinks that USB is bootable and hence fails.