为了方便大家测试,同步更新了带LCD驱动的STM32F7DISC开发板的micropython固件,同时还加上了线程功能。
https://github.com/micropython-C ... icroPython_firmware
测试代码:
- import lcdF7D
- lcdF7D.init()
- for i in range(lcdF7D.get_x_size()):
- lcdF7D.set_text_color(255, 0, 0, i*256//lcdF7D.get_x_size())
- lcdF7D.draw_Vline(i, 0, lcdF7D.get_y_size())
- lcdF7D.set_font(12)
- lcdF7D.set_text_color(255,255,255,0)
- lcdF7D.display_string_at(0,0,'Hello',0)
- lcdF7D.set_font(16)
- lcdF7D.set_text_color(255,255,255,255)
- lcdF7D.display_string_at(0,20,'Hello',0)
- lcdF7D.set_font(24)
- lcdF7D.set_text_color(255,255,128,0)
- lcdF7D.display_string_at(0,50,'Hello',0)
复制代码
运行效果
此内容由EEWORLD论坛网友dcexpert原创,如需转载或用于商业用途需征得作者同意并注明出处