[Tutorial] How to get your NanoHatOLED to work

Guides and tutorials for various stuff. Posted by DietPi users.
User avatar
MichaIng
Site Admin
Posts: 2422
Joined: Sat Nov 18, 2017 6:21 pm

Re: [Tutorial] How to get your NanoHatOLED to work

Post by MichaIng »

@maarten
Jep those are update persistent.
maarten
Posts: 35
Joined: Mon Nov 19, 2018 4:35 pm

Re: [Tutorial] How to get your NanoHatOLED to work

Post by maarten »

great! Thanks Micha !
scheiner
Posts: 11
Joined: Mon Oct 29, 2018 1:50 pm

Re: [Tutorial] How to get your NanoHatOLED to work

Post by scheiner »

Hello,

I had to recompile the kernel and then installed DietPi over it. Now it shows "Linux DietPi 4.19.25-sunxi64 #5.76 SMP" under uname.
I can't make NanoHatOLED work.

When I try "systemctl enable rc-local.service" I get this message :

dietpi@DietPi:~$ sudo systemctl enable rc-local.service
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
instance name specified.

Any ideas?

Thanks
User avatar
MichaIng
Site Admin
Posts: 2422
Joined: Sat Nov 18, 2017 6:21 pm

Re: [Tutorial] How to get your NanoHatOLED to work

Post by MichaIng »

rc-local system has changed in Debian, conflicting some old DietPi leftover. Please check for solution: https://github.com/MichaIng/DietPi/issues/2566
scheiner
Posts: 11
Joined: Mon Oct 29, 2018 1:50 pm

Re: [Tutorial] How to get your NanoHatOLED to work

Post by scheiner »

Thanks for the info Micha.

Not working. Did the install, than rebooted..

But even trying to run manually it's not working.

But ... the ./NanoHatOLED is showing under htop however nothing shows at the display.
maarten
Posts: 35
Joined: Mon Nov 19, 2018 4:35 pm

Re: [Tutorial] How to get your NanoHatOLED to work

Post by maarten »

Same here, worked like a charm up until recently. Now it is not working anymore. Black screen.
However htop shows the deamon is runnning...
scheiner
Posts: 11
Joined: Mon Oct 29, 2018 1:50 pm

Re: [Tutorial] How to get your NanoHatOLED to work

Post by scheiner »

i2c not working here ...


sudo i2cdetect -y 0
Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory

how can I enable it ?
maarten
Posts: 35
Joined: Mon Nov 19, 2018 4:35 pm

Re: [Tutorial] How to get your NanoHatOLED to work

Post by maarten »

After several reboots it seems to work again. However, NanoHatOLED display starts working not immediately after (re)boot but it takes a delay...
scheiner
Posts: 11
Joined: Mon Oct 29, 2018 1:50 pm

Re: [Tutorial] How to get your NanoHatOLED to work

Post by scheiner »

it's finally working fine.
User avatar
Phillski
Posts: 35
Joined: Fri Feb 02, 2018 10:52 am

Re: [Tutorial] How to get your NanoHatOLED to work

Post by Phillski »

Just updated from 6.19.7 to 6.24.1 and everything is working for me, I'm assuming the more recent versions of DietPi have a workaround in place for whatever gremlins were affecting people.
Post Reply