在线时间150 小时
UID2083228
注册时间2014-4-2
NXP金币250
该用户从未签到
金牌会员
- 积分
- 2570
- 最后登录
- 2023-6-23
|
看大家玩这么热闹,我也来凑个数。
别人都是比屏幕大小,我就来比比屏幕数量吧
板上总共有六个FlexComm插口,所有插口都可以任意放个屏,可惜手里没有那么多。
下面这个板子,大家肯定已经很熟悉了,是逐飞的基于LPC55S69的IoT板。
我把micropython完整地移植到了这个板上,下面就是自制的开机画面:
来个近景:
下面这个显示是用python脚本显示的,源码在后面
- gap = { 2:(40,32), 3:(32, 24), 4:(20, 24), 5:(12,22), 6:(8, 19), 7:(2,18), 8:(0,16) }
- def show_str(oled, ypos, line):
- nword = len(line) / 3
- pos = gap[nword]
- for w in range(nword):
- utf8 = line[w*3:w*3+3]
- gb = hz.Utf8ToGB(utf8)
- ft = hz.Get_font(gb)
- oled.hanzi16(pos[0] + w*pos[1], ypos, ft)
- line1=b'祝恩智浦社区'
- line2=b'越来越好'
- line3=b'祝小伙伴们'
- line4=b'新年快乐'
- oled6.clear()
- show_str(oled6, 10, line1)
- show_str(oled6, 32, line2)
- oled6.refresh()
- oled2.clear()
- show_str(oled2, 10, line3)
- show_str(oled2, 32, line4)
- oled2.refresh()
- oled0.clear()
- show_str(oled0, 4, b'恩智浦加油')
- show_str(oled0, 24, b'祝圣诞快乐')
- show_str(oled0, 44, b'元旦快乐')
- oled0.refresh()
复制代码
希望大家喜欢!
|
|