Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # เฉลยโจทย์การแข่งขัน ที่ใช้จอแสดงผล OLED แสดงตัวอักษรทีละตัว โดยมีจำนวนบรรทัดน้อยที่สุด
- #3. แสดงข้อความ โดยแสดงทีละตัวอักษร (จำกัดบรรทัดการเขียนโค้ด)
- from microbit import *
- from ssd1306 import *
- from ssd1306_text import *
- a = ["Innovative", "Experiment", "02-747-7001", "inex.co.th"]
- initialize()
- clear_oled()
- for j in range(0, 4):
- x = a[j]
- for i in range(0, len(x)):
- add_text(i, j, x[i])
- sleep(300)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement