Difference between revisions of "Sensor-Dot Matrix-Color"
From Microduino Wiki
m (Fengfeng moved page Sensor-Module Dot Matrix to Sensor-Dot Matrix-Color) |
|||
Line 6: | Line 6: | ||
The product number of Microduino-Dot Matrix is: '''MSDL31''' | The product number of Microduino-Dot Matrix is: '''MSDL31''' | ||
− | Microduino-Dot Matrix is a 8x8 colorful LED | + | Microduino-Dot Matrix is a 8x8 colorful LED dot matrix displaying module, which can be used singly or by the cascade of multiple(combine into different shapes), to display text or images, or even simple animation. |
==Features== | ==Features== | ||
Line 64: | Line 64: | ||
==Introduction of the Code== | ==Introduction of the Code== | ||
− | *Define the IIC address single dot matrix | + | *Define the IIC address of single dot matrix |
uint8_t Addr[MatrixPix_X][MatrixPix_Y] = { //1x1 | uint8_t Addr[MatrixPix_X][MatrixPix_Y] = { //1x1 | ||
{ 64} | { 64} |
Revision as of 06:06, 19 September 2016
Language: | English • 中文 |
---|
The product number of Microduino-Dot Matrix is: MSDL31 Microduino-Dot Matrix is a 8x8 colorful LED dot matrix displaying module, which can be used singly or by the cascade of multiple(combine into different shapes), to display text or images, or even simple animation. ContentsFeatures
Specification
Documents
DevelopmentProgram Download
Programming
Hardware Setup
Method to Set the Address of the Dot Matrix
Introduction of the Code
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()
setLed(_row, _col, _state) //row, col, state
setLedColor(_row, _col, _r, _g, _b) //row, col, red, green ,blue
clearDisplay()
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 ApplicationGallery |