MixPY——让爱(AI)触手可及
MixPY布局
主控芯片:K210(64位双核带硬件FPU和卷积加速器的 RISC-V CPU)
显示屏:LCD_2.8寸 320*240分辨率,支持电阻触摸
摄像头:OV2640,200W像素
扬声器:3W单声道喇叭,及2.5mm双声道耳机孔
麦克风:一颗数字高灵敏MEMS硅麦
存储介质:16MBFlash,可外接<32G calss10 TF内存卡
板载功能:RGB三色灯,自定义2颗按键,重力感应
电池管理:PMU电源管理,3重电池保护电路及550mah锂电池
无线网卡:ESP8285,WiFi无线网卡
下载驱动:CH340,USB转TTL串口驱动电路
外接拓展:3个 Type-C扩展接口,可外接18IO口及双电源输出
7、五彩MixPY移动文本弹幕
#MicroPython动手做(37)——驱动LCD与图文显示
#五彩MxiPY移动文本弹幕
import mixno
import lcd
import image
image = image.Image()
while True:
for i in range(240, 0, -1):
image.clear()
lcd.display(image.draw_string(40,i,"MicroPython",(0,255,0),5,mono_space=0))
for i in range(0, 240, 1):
image.clear()
lcd.display(image.draw_string(50,i,"MxiPY",(255,0,0),10,mono_space=0))
for i in range(0, 320, 1):
image.clear()
lcd.display(image.draw_string(i,100,"MicroPython",(250,0,250),6,mono_space=0))
for i in range(240, 0, -1):
image.clear()
lcd.display(image.draw_string(20,i,"MicroPython",(0,0,255),6,mono_space=0))
for i in range(0, 240, 1):
image.clear()
lcd.display(image.draw_string(25,i,"MxiPY",(250,250,0),12,mono_space=0))
for i in range(320, 0, -1):
image.clear()
lcd.display(image.draw_string(i,90,"MicroPython",(250,0,0),6,mono_space=0))
MixPY 实验图形编程
MicroPython动手做(37)——驱动LCD与图文显示
五彩MixPY移动文本弹幕(实验视频)
https://v.youku.com/v_show/id_XNDczNDA5MjMxNg==.html?spm=a2h0c.8166622.PhoneSokuUgc_1.dtitle
8、随机色彩的“AI”雨
#MicroPython动手做(37)——驱动LCD与图文显示
#随机色彩的“AI”雨
import time
import random
import mixno
import lcd
lcd.init(freq=15000000,color=0x0000)
X = 0
while True:
for i in range(224, 0, -16):
for YYY in range(0, 20, 1):
for Y in range(0, i, 1):
lcd.draw_string(X,Y,"AI",(random.randint(0, 0XFFFF)),0X0000)
time.sleep_ms(1)
X += 16
if X >= 318:
X = 0
#MicroPython动手做(37)——驱动LCD与图文显示
#随机色彩的“AI”雨 (实验视频)
https://v.youku.com/v_show/id_XNDczNDI1Mjg2OA==.html?spm=a2h0c.8166622.PhoneSokuUgc_3.dtitle
MixPY 实验图形编程
9、七彩屏幕循环变色
#MicroPython动手做(37)——驱动LCD与图文显示
#七彩屏幕循环变色
import mixno
import lcd
while True:
lcd.init(freq=40000,color=58935)
lcd.init(freq=60000,color=7936)
lcd.init(freq=80000,color=248)
lcd.init(freq=100000,color=59135)
lcd.init(freq=120000,color=14795)
lcd.init(freq=140000,color=8443)
lcd.init(freq=160000,color=32566)
MixPY 实验图形编程
#MicroPython动手做(37)——驱动LCD与图文显示
#七彩屏幕循环变色(实验视频)
https://v.youku.com/v_show/id_XNDczNjg5OTcxNg==.html?spm=a2h0c.8166622.PhoneSokuUgc_1.dtitle