Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLED display requires tweaks before it will function #3

Open
geerlingguy opened this issue Jan 13, 2022 · 2 comments
Open

OLED display requires tweaks before it will function #3

geerlingguy opened this issue Jan 13, 2022 · 2 comments

Comments

@geerlingguy
Copy link

geerlingguy commented Jan 13, 2022

With a fresh image of openwrt-bcm27xx-bcm2711-rpi-4-ext4-with_oled096_factory.img.gz, the OLED display is blank. If I visit the OLED configuration page inside LuCI, I see "OLED NOT RUNNING".

I had to follow the steps from this comment (NateLol/luci-app-oled#10 (comment)) to get it working:

  1. Add the following to /boot/config.txt under [All]: dtoverlay=i2c-gpio,i2c_gpio_sda=2,i2c_gpio_scl=3,i2c_gpio_delay_us=2,bus=1
  2. Run chmod 755 /etc/init.d/oled
  3. Reboot
  4. Go to the OLED settings page, check 'Enable', and click Save & Apply

And now I can see display output on the OLED display.

Is this supposed to work out of the box? And if so, should the default be 'Enabled' in OpenWRT's interface, too?

@nicolas314
Copy link

Default image has /dev/i2c-1 but /usr/bin/oled is compiled with /dev/i2c-0. Adding a symbolic link works. To make it persistent, easiest is to add to the start() function in /etc/init.d/oled:
ln -s /dev/i2c-1 /dev/i2c-0

@daleking
Copy link

daleking commented Jan 1, 2024

See here: NateLol/luci-app-oled#10 (comment) to use the hardware i2c driver not the bit-banged gpio driver to save a bit of system cpu time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants