Difference between revisions of "Microduino Dot Matrix Module Displays BMP Colored Image"
From Microduino Wiki
(Created page with "{{Language|Microduino Matrix BMP}} {| style="width: 800px;" |- | ==Outline== *Extend the dot matrix screen '''[https://www.microduino.cn/wiki/index.php/%E5%BC%80%E6%BA%90LED%...") |
(→Bill of Materials) |
||
Line 20: | Line 20: | ||
|[[Microduino-USBTTL]]||1||Program download | |[[Microduino-USBTTL]]||1||Program download | ||
|- | |- | ||
− | |[[Microduino- | + | |[[Microduino-Dot Matrix]]||4||To display |
|- | |- | ||
|[[Microduino-Cube-S1]]||1||To extend | |[[Microduino-Cube-S1]]||1||To extend | ||
|- | |- | ||
|} | |} | ||
+ | |||
==Principle of the Experiment== | ==Principle of the Experiment== | ||
*Typical BMP image file is composed of four parts: | *Typical BMP image file is composed of four parts: |
Revision as of 04:26, 27 April 2016
Language: | English • 中文 |
---|
ContentsOutline
Bill of Materials
Principle of the Experiment
Because our dot matrix screen is 24-bit, it is natural that I add the bitmap displaying function as 24-bit BMP image. The function is:drawBMP(x,y,data). This function is transplanted on the basis of the spitftbitmap routine of Adafruit. It store the BMP images in Flash store, not occupying much memory space. Program download
Operating Instructions
Programming
Code Instruction#include "Microduino_Matrix.h"
uint8_t Addr[MatrixPix_X][MatrixPix_Y] = {
{ 64, 63},
{ 62, 61} cc
};
Matrix display = Matrix(Addr);
static const uint8_t BinCode[] PROGMEM = {
};
void setup(void) {
delay(6000);
Serial.begin(115200);
Wire.begin();
display.clearDisplay();
display.drawBMP(0, 0, BinCode);
}
void loop() {
} FAQ |