selfbg / pymod-oled Goto Github PK
View Code? Open in Web Editor NEWMOD-OLED-128x64 python package
Home Page: https://www.olimex.com/
MOD-OLED-128x64 python package
Home Page: https://www.olimex.com/
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?
Hi
running your Hello World example
is printing the text backwords-.----
what am I doing wrong?
Thx
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...
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
if i have a 1 bit black and white mono jpg, how do I convert it into a PAGE MODE format that your code expects?
Thank you.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.