the-raspberry-pi-guy / oled Goto Github PK
View Code? Open in Web Editor NEWPython code and automated script for the installation of Py-Gaugette and its dependencies... For use with the Raspberry Pi and Adafruit's OLED Displays.
Python code and automated script for the installation of Py-Gaugette and its dependencies... For use with the Raspberry Pi and Adafruit's OLED Displays.
My i2c display only have 4 pins vdd/vcc/sad/scl
How to connect
Unable to determine hardware version. I see: Hardware : BCM2835
,
- expecting BCM2708 or BCM2709. Please report this to [email protected]
And I also had to change in /usr/local/lib/python2.7/dist-packages/gaugette/gpio.py
to import wiringpi2
Hello, I have an Adafruit_SSD1306 128x32 SPI connected to a raspberry Pi3, am a beginner with those things actually, anyway I downloaded and installed the Software and followed the video: https://www.youtube.com/watch?v=BeBfpJnN9SE&feature=c4-overview&list=UUfY8sl5Q6VKndz0nLaGygPw but at at the end I keep getting this error msg and can't get my display working:
Traceback (most recent call last): File "OLEDclock.py", line 18, in <module> led = gaugette.ssd1306.SSD1306(dc_pin=DC_PIN, reset_pin=RESET_PIN) TypeError: __init__() takes at least 3 arguments (3 given)
I hope its not a repeated question/issue cuz i searched a lot and couldn't find a solution for it.
By the way I had it working before on the same device with the same display but after I formatted the SD and installed a fresh Linux Rasbian then it didn't work anymore, also I got this other one and its working https://github.com/adafruit/Adafruit_SSD1306 but I need the OLEDclock.py to work, so i can use it for the pi that works as Stratum NTP Server.
Any help is appreciated
Thanks in advance.
In the Python examples (OLEDclock.py
, OLEDimage.py
, OLEDip.py
and OLEDtext.py
) it would be useful to have a more detailed comment about the numbering of the reset and DC pins. (By the way, what does DC mean?)
Change:
# Sets up our pins again
RESET_PIN = 15
DC_PIN = 16
to:
# Define which GPIO pins the reset (RST) and DC signals on the OLED display are connected to on the
# Raspberry Pi. The defined pin numbers must use the WiringPi pin numbering scheme.
RESET_PIN = 15 # WiringPi pin 15 is GPIO14.
DC_PIN = 16 # WiringPi pin 16 is GPIO15.
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.