print("Program Make the OLED operates")
print("Date:4/11/2024")
print("by jd")
#Import libraries/module
import oled_library
from machine import Pin,SoftI2C
#Pin Declaration
oled_Pin = SoftI2C(scl=Pin(22), sda=Pin(21))
#Object Declaration (This for sensor with library only)
#Object_name = LibraryName.ClassName(.....)
SimScreen = oled_library.SSD1306_I2C(width= 123, height= 64, i2c= oled_Pin)
#Parameter Declaration
#Main Program
while True:
SimScreen.fill(0) #0 means black , 1 means white
SimScreen.text("FATALITY", 32, 28, 1) #column, row, color font
SimScreen.show()
Loading
esp32-devkit-v1
esp32-devkit-v1