Coder Social home page Coder Social logo

nanohatoled's Introduction

NanoHat OLED

Example code of correct use and start for the NanoHat OLED.

Designed specifically to work with the NanoHat OLED: http://wiki.friendlyarm.com/wiki/index.php/NanoHat_OLED

Currently supported boards (Plug & Play):

  • NanoPi NEO
  • NanoPi NEO Air
  • NanoPi NEO2
  • NanoPi NEO Plus2.

Also support other development board with the i2c interface (Need to manually connect).

Introduction

Aim to compatible with Python3.x and standard C. No Python2.x, no C++.

The original implementation was based on Python2.x, thanks to CuitGGyy for porting it to Python 3.x environment.

Installation

FriendlyCore Xenial / Armbian Stretch / Ubuntu Core Xenial

Execute the following command in the operating system:

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

FriendlyCore Focal / Armbian Buster / Ubuntu Core Bionic

Execute the following command in the operating system:

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

The demo will automatically start at the next reboot.

License

The MIT License (MIT) Copyright (C) 2017 FriendlyELEC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

nanohatoled's People

Contributors

cuitggyy avatar lawrencetg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nanohatoled's Issues

Question on custom kernel

Hi there,

Does this software require custom kernel to display on Nanopi NEO ? Or using an official armbian image will do the job ?

Support for Python 3?

Soon will not possible anymore to install it because pip support will stop on 1 jan 2021

NanoHat on OpenWRT

Hello,

I have OpenWRT booting up on the neo2, but I am not having any luck figuring out how to get the NanoHat OLED to work or be discovered by the kernel. I suspect I may be missing a driver or something like that? Can you let me know what (if any) patches are needed to the kernel, and what kernel options need to be enabled to compile support for the NanoHat OLED? I'll try to get the fixes accepted into OpenWRT so other users will have an easier time....

Nanopi Neo 3

Do you think that will be possible rewiring the connections support NanoPI NEO 3?

Not working on Armbian

Hi,
I am trying to use the NanoHatOLED on Armbian. I install it as described but it does not seem to work since I cannot see anything on the display.

Can someone give me some information about it or debug it?

Thanks

After the new screen is replaced, the driver is incorrectly displayed

Hello senior, I have encountered some problems when using this display. The problems are as follows: When the oled display works for too long, there will be serious residual shadows on the screen. After I replaced this display, I found that the display was not normal and the display content was not in the right position. The driver chip has been replaced with ssd1315. The new chip seems to be a little different from the old chip. Could you help me update the driver or program?

Text has offset some part is missing.

I saw the issue for some time also on original image then disappear.
Now i moved to armbian and i have again the issue.
What is the cause?
Wich command can help me changing the screen offset?
Regards.
Enrico
20190105_122239

don't work in ubuntu 18.04 kernel 4.14

don't work in ubuntu 18.04 kernel 4.14

Using cached https://files.pythonhosted.org/packages/3c/7e/443be24431324bd34d22dd9d11cc845d995bcd3b500676b cf23142756975/Pillow-5.4.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named setuptools

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-3gi9uK/pillow/

F2 button not working

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.