This code is discontinued - Check out our newer tutorial at - https://learn.adafruit.com/monochrome-oled-breakouts/python-wiring
Just before we wire up our OLED display let's learn a little bit about how we are actually going to use it. So, we will be communicating with our display through the SPI pins on the Pi. What is SPI? I won't go into it in too much detail (if you are dying to know then give it a Google), but it is essentially a 4-wire bus... No, not one of the buses that drives around everywhere... In electronics a 'bus' simply describes the wiring of multiple compatible devices together. In our case we will be using it to send data from the Pi to our OLED. SPI stands for Serial Peripheral Interface and it is very useful for a number of reasons - mainly because it is so fast and this is perfect for our display.
We will be communicating with our display through Python. A great, understandable language that is perfect for the Pi. Sadly the tools we need to 'talk' to our OLED are not installed in the default Raspbian image and so we will need to download them ourselves! Don't worry - I have created a nice and easy process that will do this all for us.
Now let's wire up our OLED display!
We will be communicating with our display through Python. A great, understandable language that is perfect for the Pi. Sadly the tools we need to 'talk' to our OLED are not installed in the default Raspbian image and so we will need to download them ourselves! Don't worry - I have created a nice and easy process that will do this all for us.
Now let's wire up our OLED display!
Text editor powered by tinymce.