[Tutorial] How to get your NanoHatOLED to work

Guides and tutorials for various stuff. Posted by DietPi users.
User avatar
MichaIng
Legend
Posts: 1626
Joined: Sat Nov 18, 2017 5:21 pm

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

Post by MichaIng » Wed Jan 30, 2019 10:42 pm

@maarten
Jep those are update persistent.

maarten
Posts: 29
Joined: Mon Nov 19, 2018 3:35 pm

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

Post by maarten » Wed Jan 30, 2019 10:50 pm

great! Thanks Micha !

scheiner
Posts: 10
Joined: Mon Oct 29, 2018 12:50 pm

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

Post by scheiner » Fri Mar 01, 2019 1:23 pm

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 :

[email protected]:~$ 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
Legend
Posts: 1626
Joined: Sat Nov 18, 2017 5:21 pm

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

Post by MichaIng » Fri Mar 01, 2019 2:22 pm

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: 10
Joined: Mon Oct 29, 2018 12:50 pm

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

Post by scheiner » Fri Mar 01, 2019 11:20 pm

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: 29
Joined: Mon Nov 19, 2018 3:35 pm

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

Post by maarten » Sat Mar 02, 2019 2:43 pm

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: 10
Joined: Mon Oct 29, 2018 12:50 pm

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

Post by scheiner » Sat Mar 02, 2019 4:36 pm

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: 29
Joined: Mon Nov 19, 2018 3:35 pm

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

Post by maarten » Sat Mar 02, 2019 6:49 pm

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: 10
Joined: Mon Oct 29, 2018 12:50 pm

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

Post by scheiner » Sun Mar 03, 2019 12:10 am

it's finally working fine.

User avatar
Phillski
Posts: 24
Joined: Fri Feb 02, 2018 9:52 am

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

Post by Phillski » Tue Jun 11, 2019 9:32 am

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