Advertisement
Guest User

Untitled

a guest
May 29th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1.  
  2. from time import sleep_ms, ticks_ms
  3. from machine import I2C, Pin
  4. from esp8266_i2c_lcd import I2cLcd
  5.  
  6. print("Running test_main")
  7. i2c = I2C(scl=Pin(4), sda=Pin(5), freq=400000)
  8. lcd = I2cLcd(i2c, 63, 2, 16)
  9. lcd.putstr("It Works!\nSecond Line")
  10. sleep_ms(3000)
  11. lcd.clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement