Git Product home page Git Product logo

pymod-oled's People

Contributors

selfbg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

palat db4linq step21

pymod-oled's Issues

Image is mirrored

Hi
I am trying to use this library on CHIP (getchip.com)
But I run Hello_World.py the image is mirrored.
How can i flip left and right?

how to reset all vertical and horizontal scroll setup

I simple try

root@FriendlyARM:~/pyMOD-OLED/example# ls
clowns	Draw_Bitmap.py	Hello_World.py

python Hello_World.py 
python Draw_Bitmap.py 

The horizontal scroll setup in Hello_World.py also affect the clown in Draw Bitmap too..

I using Nanopi M1.. . IDK...

Cannot install via pip

I'm getting this error:

(oled)laga@ivanov:~/venv$ pip install mod-oled-128x64
Downloading/unpacking mod-oled-128x64
  Downloading mod-oled-128x64-0.0.3.tar.gz
  Running setup.py (path:/tmp/pip-build-BJhdn1/mod-oled-128x64/setup.py) egg_info for package mod-oled-128x64
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-BJhdn1/mod-oled-128x64/setup.py", line 21, in <module>
        long_description=read('README.rst') + '\n' + read('CHANGES.rst'),
      File "/tmp/pip-build-BJhdn1/mod-oled-128x64/setup.py", line 11, in read
        with open(path.join(here, name), encoding='utf-8') as f:
      File "/home/laga/venv/oled/lib/python2.7/codecs.py", line 878, in open
        file = __builtin__.open(filename, mode, buffering)
    IOError: [Errno 2] No such file or directory: '/tmp/pip-build-BJhdn1/mod-oled-128x64/CHANGES.rst'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-BJhdn1/mod-oled-128x64/setup.py", line 21, in <module>

    long_description=read('README.rst') + '\n' + read('CHANGES.rst'),

  File "/tmp/pip-build-BJhdn1/mod-oled-128x64/setup.py", line 11, in read

    with open(path.join(here, name), encoding='utf-8') as f:

  File "/home/laga/venv/oled/lib/python2.7/codecs.py", line 878, in open

    file = __builtin__.open(filename, mode, buffering)

IOError: [Errno 2] No such file or directory: '/tmp/pip-build-BJhdn1/mod-oled-128x64/CHANGES.rst'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-BJhdn1/mod-oled-128x64
Storing debug log for failure in /home/laga/.pip/pip.log

Thanks! Installation via the git repository works:

pip install git+https://github.com/SelfDestroyer/pyMOD-OLED.git

RuntimeError: maximum recursion depth exceeded using python3.4

Hello, I'm trying to use this library with my A20 and a generic OLed 128x64 screen, testing with Hello_World.py

I can use it and it performs ok with python2.7

I have a virtual environment using python3.4 , I have to run script as sudo, to be able to access /dev/i2c-0

when I run, as sudo, with the virtual-env python3.4 I receive error as shown below

RuntimeError: maximum recursion depth exceeded

If I just print a dot or line, not words, and comment out lines regarding Font, it works on both python2.7 and python3.4

It's just happening to me ?

please can you give some hint on how to solve ?

thanks in advance

Traceback (most recent call last):
  File "asistente-google/hotword.py", line 64, in <module>
    f = Font(2)
  File "/home/mauricio/virtual-envs/asistente/lib/python3.4/site-packages/oled/Font.py", line 119, in __init__
    self.scale = scale
  File "/home/mauricio/virtual-envs/asistente/lib/python3.4/site-packages/oled/Font.py", line 127, in scale
    self.scale = new_scale
  .
  .
  .
  File "/home/mauricio/virtual-envs/asistente/lib/python3.4/site-packages/oled/Font.py", line 127, in scale
    self.scale = new_scale
  File "/home/mauricio/virtual-envs/asistente/lib/python3.4/site-packages/oled/Font.py", line 127, in scale
    self.scale = new_scale
RuntimeError: maximum recursion depth exceeded

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.