microbit Excercise for VEC 2020 #1
# เฉลยโจทย์การแข่งขัน ที่ใช้จอแสดงผล 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)
Comments