Home
Features
_Multi DropDown
__DropDown 1
__DropDown 2
__DropDown 3
_ShortCodes
_SiteMap
_Error Page
Mega Menu
Documentation
_Web Documentation
_Video Documentation
Privacy Policy
Daftar Isi
Beranda
Micropython ESP8266 Using Display TM-1637
Micropython ESP8266 Using Display TM-1637
Mei 04, 2022
Micropython ESP8266 Using Display TM-1637
import tm1637 import time from machine import Pin tm = tm1637.TM1637(clk=Pin(5), dio=Pin(4)) while True: # all LEDS on "88:88" time.sleep(1) tm.write([127, 255, 127, 127]) # all LEDS off time.sleep(1) tm.write([0, 0, 0, 0]) # show "0123" time.sleep(1) tm.write([63, 6, 91, 79]) # show "COOL" time.sleep(1) tm.write([0b00111001, 0b00111111, 0b00111111, 0b00111000]) # show "HELP" time.sleep(1) tm.show('help') # display "dEAd", "bEEF" time.sleep(1) tm.hex(0xdead) time.sleep(1) tm.hex(0xbeef) # show "12:59" time.sleep(1) tm.numbers(12, 59) # show "-123" time.sleep(1) tm.number(-123) # show temperature '24*C' time.sleep(1) tm.temperature(24)
Social Plugin
ARTIKEL
3/recent/post-list
Facebook
Subscribe Us