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

F2 button not working #2

Open
dinokent opened this issue Jul 27, 2017 · 12 comments
Open

F2 button not working #2

dinokent opened this issue Jul 27, 2017 · 12 comments

Comments

@dinokent
Copy link

Hi,
After somedays of playing, I moved the Nanopi Neo2 with OLED Hat to another location, after config the network and reboot, the OLED hat can only function with button F1 and F3. F2 to display IP / CPU... were no response. I do reinstall and reboot but no luck.

It can only show Time, and let me Shutdown now, any hints to fix it?
thx,
Kent

@friendlyarm
Copy link
Owner

Hello, try to remove the case, can the button F2 work?

@dinokent
Copy link
Author

dinokent commented Jul 27, 2017 via email

@friendlyarm
Copy link
Owner

ok, you also can try the new rom, download from this link (under the officail-ROMs directory): https://www.mediafire.com/folder/ah4i6w029912b/NanoPi-NEO2

filename: nanopi-neo2_ubuntu-oled_4.11.2_20170705.img.zip

@dinokent
Copy link
Author

dinokent commented Jul 28, 2017 via email

@friendlyarm
Copy link
Owner

friendlyarm commented Jul 28, 2017

We haven't tested it on other OS, you can try to install it on other OS with the following commands:

# git clone https://github.com/friendlyarm/NanoHatOLED.git
# cd NanoHatOLED
# sudo -H ./install.sh

@dinokent
Copy link
Author

dinokent commented Jul 28, 2017 via email

@vophatechnicus
Copy link

"same" problem here.

Display is working fine. Buttons F1 and F3 are working as expected.
But as soon as i press F2, the time display stops working (freezes) and any other button press (even F1 or F3) has no effect.

I installed it via Github repo over nanopi-neo-air_eflasher_4.11.2_20170705.img

@friendlyarm
Copy link
Owner

I'm sorry, it's an issue. Now you can fix it this way:

cd ~/NanoHatOLED/BakeBit/
sudo git checkout master
sudo git pull
sudo reboot

@dinokent
Copy link
Author

dinokent commented Aug 9, 2017 via email

@vophatechnicus
Copy link

The fix doesn´t work.
But i have some new information. I Stopped the bakebit_nanhoat_oled.py process and startet the Python script by hand, so i could see the "Kx pressed" output.

If i press K2 the message "K2 pressed" appears but nothuing happens. After some more presses the following error appers.

K2 pressed
Traceback (most recent call last):
File "bakebit_nanohat_oled.py", line 286, in
time.sleep(1)
File "bakebit_nanohat_oled.py", line 240, in receive_signal
draw_page()
File "bakebit_nanohat_oled.py", line 156, in draw_page
draw.text((x, top+5), "IP: " + str(IP), font=smartFont, fill=255)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 209, in text
*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 233, in multiline_text
line_width, line_height = self.textsize(line, font)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 260, in textsize
return font.getsize(text, direction, features)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFont.py", line 156, in getsize
size, offset = self.font.getsize(text, direction, features)

I am not that deep into python but i hope it helps.

@vophatechnicus
Copy link

update:

as mentioned on a russian website with nearly the same error (for another thing) i tried to revert Pillow from installed version 4.2.1 to 4.1.1.

Now it works!

@friendlyarm
Copy link
Owner

thanks, we've released a new version of rom: nanopi-neo-air_ubuntu-oled_4.11.2_20170809.img.zip
download url: https://www.mediafire.com/index.php#oc15bwqbuxgxe
I tested it on NanoPi NEO Air and it works.

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