Difference between revisions of "Microduino Dot Matrix Module Displays BMP Colored Image"
From Microduino Wiki
(→Programming) |
(→Programming) |
||
Line 72: | Line 72: | ||
**Connect '''[[Microduino-USBTTL]]''' with USB cable and prepare to upload the program. | **Connect '''[[Microduino-USBTTL]]''' with USB cable and prepare to upload the program. | ||
**Note:You’d better upload the program before stacking all the modules. | **Note:You’d better upload the program before stacking all the modules. | ||
− | *Open Arduino IDE for Microduino environment. (Set-up reference :'''[[AVR Core: Getting | + | *Open Arduino IDE for Microduino environment. (Set-up reference :'''[[AVR Core: Getting Started]]''') |
*Click '''【Tool】''', confirm '''board card (Microduino-Core) and processor(Atmega328P@16M,5V)''' are chosen correctly, and choose the corresponding ''' port number(COMX)'''. | *Click '''【Tool】''', confirm '''board card (Microduino-Core) and processor(Atmega328P@16M,5V)''' are chosen correctly, and choose the corresponding ''' port number(COMX)'''. | ||
*Click '''【File】'''->'''【Open】''', browse to the project program address, and click '''“Dot-Matrix-BMP.ino”''' to open it. | *Click '''【File】'''->'''【Open】''', browse to the project program address, and click '''“Dot-Matrix-BMP.ino”''' to open it. |
Revision as of 05:04, 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 |