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

Does the display work if the rpi4 run Ubuntu server? #8

Open
MorganLindqvist opened this issue Oct 8, 2022 · 1 comment
Open

Does the display work if the rpi4 run Ubuntu server? #8

MorganLindqvist opened this issue Oct 8, 2022 · 1 comment

Comments

@MorganLindqvist
Copy link

Hi,

My rpi4 is running Ubuntu 22.04. Is it possible to install this code on Ubuntu so I can get out the information and display it?

My rack is ordered but have not arrived yet so I can not test.

/Morgan

@bigbrovar
Copy link

Hello Morgan,

I got the display to work on Ubuntu 20.04, the instruction is a bit different based on Ubuntu's unique way of doing things.

First, you would need to enable i2c and baud rate by editing this file /boot/firmware/usercfg.txt append below

dtoverlay=gpio-shutdown
dtoverlay=gpio_pin=4
dtoverlay=active_low=1
dtoverlay=gpio_pull=up
dtparam=i2c_arm=on
dtparam=i2c_arm_baudrate=400000

next, you would need to install i2c packages which does not come by default with the ubuntu server

sudo apt install -y python3-pip python3-dev python3-pil python3-setuptools python3-rpi.gpio i2c-tools]

Lastly, you need to add your user to the i2c group, in my case the user is the default ubuntu user

sudo usermod -aG i2c ubuntu

You can then follow the rest of the instructions by compiling the display driver.

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

2 participants