Created
July 19, 2019 18:44
-
-
Save Shinichi-Ohki/a87eaf8383cccbfd9312dd702c12de1d to your computer and use it in GitHub Desktop.
M5stickVのバックライトを制御する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lcd #for test | |
from machine import I2C | |
i2c = I2C(I2C.I2C0, freq=400000, scl=28, sda=29) | |
lcd.init() #for test | |
lcd.draw_string(100, 100, "hello maixpy", lcd.RED, lcd.BLACK) #for test | |
i2c.writeto_mem(0x34, 0x91,b'\x70') # minimum | |
i2c.writeto_mem(0x34, 0x91,b'\xf0') # maximum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment