【掌控板】1、显示坐标轴,亮灯
#显示精度x127,y63(不用这段,只是用来判断精度的)# MindPlus# mpythonfrom mpython import *x=0y=0while True:#oled.pixel(x,y,1)oled.pixel(127,63,1)oled.show()#x=x+2#y=y+1#print("x",x)#print("y",y)#time.sleep(0.1)# 板载RGB灯fro
·
待办
显示坐标轴,亮灯
数组归一化
显示一个点,显示屏的精度(横纵坐标点数)
显示txt中数组的折线图
micropython实现fft
读取wav文件读取音频数据
内容
判断显示屏精度
#显示精度x127,y63(不用这段,只是用来判断精度的)
# MindPlus
# mpython
from mpython import *
x=0
y=0
while True:
#oled.pixel(x,y,1)
oled.pixel(127,63,1)
oled.show()
#x=x+2
#y=y+1
#print("x",x)
#print("y",y)
#time.sleep(0.1)
显示坐标轴及亮灯
# 板载RGB灯
from mpython import *
import neopixel
import time
ws2812_P7 = neopixel.NeoPixel(Pin(Pin.P7), n=3, bpp=3, timing=1)
ws2812_P7.brightness(10 / 255)
ws2812_P7[0]=(255, 0, 0)
ws2812_P7.write()
#绘制坐标轴
# MindPlus
# mpython
from mpython import *
while True:
oled.line(0,3,3,0,1)
oled.line(3,0,6,3,1)
oled.line(123,57,127,60,1)
oled.line(123,63,127,60,1)
oled.line(3,0,3,63,1)
oled.line(0,60,127,60,1)
oled.show()
结果图
更多推荐
已为社区贡献6条内容
所有评论(0)