Sensor-Dot Matrix-Color/zh
Language | English |
---|
Microduino-Dot Matrix的产品编号是:MSDL31 Microduino-Dot Matrix模块是一个8x8多彩LED显示矩阵模块,可单个点阵或多个点阵级联(组合成不同的形状)使用,用于显示图片或文字,甚至是简单的动画效果。 特色
规格
文档
开发程序下载
程序烧写
硬件搭建
点阵地址设置方法
代码说明
uint8_t Addr[MatrixPix_X][MatrixPix_Y] = { //1x1 { 64} };
uint8_t Addr[MatrixPix_X][MatrixPix_Y] = { //2x2 { 64, 63}, { 62, 61} };
uint8_t Addr[MatrixPix_X][MatrixPix_Y] = { //1x4 { 64, 63, 62 , 61} };
int16_t getMatrixNum()
getDeviceAddr(_a) //num
getWidth()
getHeight()
setLedColor(_row, _col, _r, _g, _b) //row, col, red, green ,blue
clearDisplay()
display.setColor(_r, _g, _b) //red, green ,blue
writeString(_c, _t, _col) //[char*], time, col
drawBMP(_row, _col , _w, _h, logo) //row, col, width, height, file
drawBMP(_row, _col, logo) //row, col, file
drawBox(_row, _col, _w, _h) //row, col, width, height
drawRBox(_row, _col, _w, _h, _r) //row, col, width, height, rad
drawFrame(_row, _col, _w, _h) //row, col, width, height
drawRFrame(_row, _col, _w, _h, _r) //row, col, width, height, rad
drawCircle(_row, _col, _r) //row, col, rad
drawDisc(_row, _col, _r) //row, col, rad
drawLine(_row, _col, _row1, _col1) //row start, col start, row end, col end 应用图库 |