from machine import Pin , I2C
import time
from ssd1306 import SSD1306_I2C
width = 128
height = 64
i2c = I2C(0 , scl=Pin(17) , sda=Pin(16) , freq=200000)
oled = SSD1306_I2C(width , height , i2c)
oled.invert(True)
for x in range(5 , 129 , 5):
oled.text('RAMY' , x,50 )
oled.show()
time.sleep(0.2)
oled.fill(0) # clear the screen
for x in range(128 , 5 , -5):
oled.text('RAMY' , x,50 )
oled.show()
time.sleep(0.2)
oled.fill(0) # clear the screen