Dual Displays ?

General support for the Pi-Star System
Post Reply
KE8WSC
Posts: 1
Joined: Tue Mar 07, 2023 9:55 pm

Dual Displays ?

Post by KE8WSC »

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 ?
KB1IEE
Posts: 7
Joined: Fri Feb 10, 2023 3:09 pm

Re: Dual Displays ?

Post by KB1IEE »

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." '
KN2TOD
Posts: 268
Joined: Sun Nov 11, 2018 6:36 pm

Re: Dual Displays ?

Post by KN2TOD »

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.
Post Reply