RGB1602

Hardware connection

Drag and download RGB1602.py of uPy_lib to lib of device.

Run the program:

Examples=>Display=>rgb1602Demo.py

from machine import Pin,I2C
import RGB1602

i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000)

print("========DFRobot ESP8266 I2C LCD1602 TEST===========")
lcd=RGB1602.RGB1602(16,2,i2c)
lcd.setRGB(0,50,0);
lcd.setCursor(0,0)
lcd.print("DFRobot")

lcd.setCursor(5,1)
lcd.print("chengdu")
lcd.print(3322)
while True:
    time.sleep(1)
    lcd.scrollDisplayLeft()

Operation effect image.

SSD1306

Hardware connection

Drag and download ssd1306.py of uPy_lib to lib of device.

Run the program:

Examples=>Display=>ssd1306Demo.py

from machine import Pin,I2C
import ssd1306

i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000)

lcd=ssd1306.SSD1306_I2C(128,64,i2c)
lcd.text("DFRobot",0,0)
lcd.text("chengdu",24,16)
lcd.text("123456",64,24)
lcd.show()

Operation effect image.

ILI9486(will be published soon)

Hardware connection

Drag and download ili9486.py of uPy_lib to lib of device.

Run the program:

LED dot matrix

Hardware connection (Only support ESP8266 platform now)

Plug FireBeetle Covers-24x8 to FireBeetle-ESP8266.

Drag and download ht1632.py of uPy_lib to lib of device.

Run the program:

Examples=>Display=>ht1632Demo.py

#hardware platform: FireBeetle-ESP8266

import ht1632
import time

DATAPIN=5
CLKPIN =4
CSPIN  =13

led=ht1632.HT1632C(DATAPIN,CLKPIN,CSPIN)
led.text("DFRobot",0,0)
led.show()

while True:
  led.scroll(-1,0)
  led.show()
  time.sleep(0.01)

Operation effect image.

results matching ""

    No results matching ""