Lesson 32--Microduino 16*16 Lattice Character Transverse Move Display
Language: | English • 中文 |
---|
ContentsObjectiveThis tutorial will teach how to move an image to the right dynamicly on 16*16 lattice. Take an Chinese characters for example. Equipment
DocumentLM-2256 Series 16 *16 matrix displays:File:.led 16 16.zip Feature
Principle
Debug
Detailed information,please refer to: http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%BA%8C%E8%AF%BE--Microduino_OLED%E4%BD%BF%E7%94%A8/zh Note: modulus method changed to: determinant, Yang code, reverse.
In loop() function, the second for() loop uses to control display timer for every image, large number with large timer. Grammar
For example: a=0x03;// binary:00000011 b=a<<3// binary:00011000 then b=0x18;
For example: a<<=0x03; then a==0x18;
For example: a=0x30;// binary:00110000 b=a>>3// binary:00000110 then b=0x06;
0 0 1 1 operand 1 0 1 0 1 operand 2 -------------- 0 1 1 1 result
0 0 1 1 operand 1 0 1 0 1 operand 2 -------------- 0 0 0 1 result ResultThrough testing, the move speed of Chinese character is about half a second. Players can modify the display images and time according to his own interest. Pay attention issue
Video |