Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

ssd 1306 esp32 python

# Complete project details at https://RandomNerdTutorials.com

from machine import Pin, SoftI2C
import ssd1306
from time import sleep

# ESP32 Pin assignment 
i2c = SoftI2C(scl=Pin(22), sda=Pin(21))

# ESP8266 Pin assignment
#i2c = SoftI2C(scl=Pin(5), sda=Pin(4))

oled_width = 128
oled_height = 64
oled = ssd1306.SSD1306_I2C(oled_width, oled_height, i2c)

oled.text('Hello, World 1!', 0, 0)
oled.text('Hello, World 2!', 0, 10)
oled.text('Hello, World 3!', 0, 20)
        
oled.show()
Comment

PREVIOUS NEXT
Code Example
Python :: how to clear formatting in python 
Python :: convert set to list python time complexity method 4 
Python :: python print list of keywords 
Python :: how to get total seconds in django queryset for timedelta field 
Python :: awesome python 
Python :: sklearn list parameters 
Python :: Sending Data in Unstructured File Form 
Python :: assert isinstance python 
Python :: Creating column based on existing column 
Python :: dictionart 
Python :: sum function in python 
Python :: python set xticks to int not float 
Python :: how to reassign a key py 
Python :: Using iterable unpacking operator * with extend 
Python :: how to use kite python 
Python :: check if variable is iterable python 
Python :: nums: List[int] in python function 
Python :: reddit python 3 time a python program 
Python :: choose a random snippet of text 
Python :: matplotlib include first number in plotter 
Python :: how to write a program that interacts with the terminal 
Python :: python code to display a grid of data table 
Python :: assert_series_equal 
Python :: how to make a list with the same string in python 
Python :: python pass statement 
Python :: REST APIs with Flask and Python free download 
Python :: how to use query in ms access with python 
Python :: django register form return a 302 request 
Python :: translating the mean of a data to a specific value 
Python :: wap in python to print the sum of the series 1 + 1/2! + 1/3! 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =