scroll string on MARMEX-OB
Dependencies: MARMEX_OB_oled_J mbed
Revision 0:39b78248fd07, committed 2014-05-20
- Comitter:
- Naoto_111
- Date:
- Tue May 20 15:39:36 2014 +0000
- Commit message:
- first commit
Changed in this revision
diff -r 000000000000 -r 39b78248fd07 MARMEX_OB_oled_J.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MARMEX_OB_oled_J.lib Tue May 20 15:39:36 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/diasea/code/MARMEX_OB_oled_J/#1106831b0509
diff -r 000000000000 -r 39b78248fd07 lcharmap.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lcharmap.cpp Tue May 20 15:39:36 2014 +0000 @@ -0,0 +1,1209 @@ +#include "lcharmap.h" + +/*template +char map_*****[*][LCHAR_HEIGHT][LCHAR_WIDTH]={ + {0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0}, + + ... + + }, +*/ + +/* +map_large:Capital letters([0][][]->A,...,[25][][]->Z) +map_small:Small letters([0][][]->a,...,[25][][]->z) +map_number:Numbers([0]->0,...,[9]->9) +map_mark:mark, space, etc.([0]->(space),[1]->(comma), [2]->(period)) +*/ +char map_large[26][LCHAR_HEIGHT][LCHAR_WIDTH]={ + //A + {0,0,0,0,1,1,0,0,0,0, + 0,0,0,0,1,1,0,0,0,0, + 0,0,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,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0}, + + //comma + {0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,1,1,0,0,0,0,0,0,0, + 0,1,1,0,0,0,0,0,0,0, + 0,0,1,0,0,0,0,0,0,0, + 0,1,0,0,0,0,0,0,0,0}, + + //period + {0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0, + 0,1,1,0,0,0,0,0,0,0, + 0,1,1,0,0,0,0,0,0,0}, +}; \ No newline at end of file
diff -r 000000000000 -r 39b78248fd07 lcharmap.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lcharmap.h Tue May 20 15:39:36 2014 +0000 @@ -0,0 +1,21 @@ +#ifndef LCHARMAP +#define LCHARMAP +enum{ + LCHAR_HEIGHT = 16, + LCHAR_WIDTH = 10, + MARGIN = 2 +}; + +//map_a_large[0][LCHAR_HEIGHT][LCHAR_WIDTH] +// ->map of "A" +//~ +//map_a_large[25][LCHAR_HEIGHT][LCHAR_WIDTH] +// ->map of "Z" + +extern char map_large[26][LCHAR_HEIGHT][LCHAR_WIDTH]; +extern char map_small[26][LCHAR_HEIGHT][LCHAR_WIDTH]; +extern char map_number[10][LCHAR_HEIGHT][LCHAR_WIDTH]; +extern char map_mark[3][LCHAR_HEIGHT][LCHAR_WIDTH]; + + +#endif \ No newline at end of file
diff -r 000000000000 -r 39b78248fd07 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue May 20 15:39:36 2014 +0000 @@ -0,0 +1,80 @@ +#include "mbed.h" +#include "MARMEX_OB_oled.h" +#include "lcharmap.h" + +//"LCHAR_HEIGHT", "LCHAR_WIDTH" -> "lcharmap.h" +DigitalOut myled(LED1); +MARMEX_OB_oled oled1( p5, p7, p8, p30, p11 ); // mosi, sclk, cs, rst, power_control + +void strscroll(char *str, int len); +void arraycopy(char array1[LCHAR_HEIGHT][LCHAR_WIDTH+MARGIN],char array2[LCHAR_HEIGHT][LCHAR_WIDTH+MARGIN]); +void arraycopy2(char array1[][LCHAR_HEIGHT][LCHAR_WIDTH],char array2[LCHAR_HEIGHT][LCHAR_WIDTH+MARGIN], int n); + +int main() +{ + oled1.background( 0x000000 ); + oled1.cls(); + char str[]={"ABC abc"};//input massage + strscroll(str,strlen(str)); + +} + +void strscroll(char *str, int len) +{ + char left[LCHAR_HEIGHT][LCHAR_WIDTH+MARGIN], + center[LCHAR_HEIGHT][LCHAR_WIDTH+MARGIN], + right[LCHAR_HEIGHT][LCHAR_WIDTH+MARGIN]; + arraycopy2(map_mark,left,0); + arraycopy2(map_mark,center,0); + + for(int i=0; i<len+2; i++) { + if(i>=len)arraycopy2(map_mark,right,0); + else if('A'<=str[i]&&str[i]<='Z')arraycopy2(map_large,right,str[i]-'A'); + else if('a'<=str[i]&&str[i]<='z')arraycopy2(map_small,right,str[i]-'a'); + else if('0'<=str[i]&&str[i]<='9')arraycopy2(map_number,right,str[i]-'0'); + else if(str[i]==32)arraycopy2(map_mark,right,0); + else if(str[i]==',')arraycopy2(map_mark,right,1); + else if(str[i]=='.')arraycopy2(map_mark,right,2); + else oled1.cls(),myled=1,strscroll("ERROR", strlen("ERROR")),exit(EXIT_FAILURE); + + for(int x=15; x>=15-(LCHAR_WIDTH+MARGIN); x--) { + for(int k=0; k<(LCHAR_WIDTH+MARGIN); k++) { + for(int y=0; y<LCHAR_HEIGHT; y++) { + int color; + + //left + if(left[y][k]==1)color=0xFFFFFF; + else color=0x000000; + if(0<=x+k-(LCHAR_WIDTH+MARGIN)*2&&x+k-(LCHAR_WIDTH+MARGIN)*2<=15)oled1.fill((x+k-(LCHAR_WIDTH+MARGIN)*2)*8,y*8,8,8,color); + + //center + if(center[y][k]==1)color=0xFFFFFF; + else color=0x000000; + if(0<=x+k-(LCHAR_WIDTH+MARGIN)&&x+k-(LCHAR_WIDTH+MARGIN)<=15)oled1.fill((x+k-(LCHAR_WIDTH+MARGIN))*8,y*8,8,8,color); + + //right + if(right[y][k]==1)color=0xFFFFFF; + else color=0x000000; + if(0<=x+k&&x+k<=15)oled1.fill((x+k)*8,y*8,8,8,color); + } + + } + if(x!=15-(LCHAR_WIDTH+MARGIN))wait(0.1); + } + arraycopy(center,left); + arraycopy(right,center); + } + + +} + +void arraycopy(char array1[LCHAR_HEIGHT][LCHAR_WIDTH+MARGIN],char array2[LCHAR_HEIGHT][LCHAR_WIDTH+MARGIN]){ + for(int i=0; i<LCHAR_HEIGHT; i++)for(int j=0; j<LCHAR_WIDTH; j++)array2[i][j]=array1[i][j]; +} + +void arraycopy2(char array1[][LCHAR_HEIGHT][LCHAR_WIDTH],char array2[LCHAR_HEIGHT][LCHAR_WIDTH+MARGIN], int n){ + for(int i=0; i<LCHAR_HEIGHT; i++)for(int j=0; j<LCHAR_WIDTH+MARGIN; j++){ + if(j>=LCHAR_WIDTH)array2[i][j]=0; + else array2[i][j]=array1[n][i][j]; + } +} \ No newline at end of file
diff -r 000000000000 -r 39b78248fd07 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue May 20 15:39:36 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776 \ No newline at end of file