|
楼主 |
发表于 2020-5-7 16:22
|
显示全部楼层
11、OLED满屏流水字
#MicroPython动手做(14)——掌控板之OLED屏幕
#OLED满屏流水字
[mw_shl_code=arduino,true]#MicroPython动手做(14)——掌控板之OLED屏幕
#OLED满屏流水字
from mpython import *
import time
rgb.fill((int(0), int(0), int(102)))
rgb.write()
time.sleep_ms(1)
while True:
_E8_A1_8C = 0
while not _E8_A1_8C >= 4:
_E5_88_97 = 0
while not _E5_88_97 >= 8:
oled.fill(0)
oled.DispChar("掌控板OLED", (_E5_88_97 * 16), (_E8_A1_8C * 16), 1)
oled.show()
_E5_88_97 = _E5_88_97 + 1
_E8_A1_8C = _E8_A1_8C + 1
_E8_A1_8C = 0
while not _E8_A1_8C >= 4:
_E5_88_97 = 0
while not _E5_88_97 >= 8:
oled.fill(0)
oled.DispChar("mPython", (_E5_88_97 * 16), (_E8_A1_8C * 16), 1)
oled.show()
_E5_88_97 = _E5_88_97 + 1
_E8_A1_8C = _E8_A1_8C + 1[/mw_shl_code]
|
|