keniti akiba
/
7seg_halloween_011_1
stm32l010f4p6 7seg
Revision 2:5c6bd1ace21b, committed 2020-10-18
- Comitter:
- caa45040
- Date:
- Sun Oct 18 10:24:31 2020 +0000
- Parent:
- 1:39b4c2f626ec
- Commit message:
- stm32l010f4p6 7seg halloween
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 39b4c2f626ec -r 5c6bd1ace21b main.cpp --- a/main.cpp Thu Oct 15 21:09:35 2020 +0000 +++ b/main.cpp Sun Oct 18 10:24:31 2020 +0000 @@ -62,16 +62,27 @@ int s; -s=8; -//while(1) { +//s=8; // HALLOWEEN + // 001112001 + // 812253554 + // 0 1 2 3 4 5 6 7 8 + // H A L L O W E E N + char v[]={ 8, 1,12,12,15,23, 5, 5,14}; + f=0; + while(1) { + s = v[f]; myled1 = seg[s][0];myled2 = seg[s][1];myled3 = seg[s][2];myled4 = seg[s][3]; myled5 = seg[s][4];myled6 = seg[s][5];myled7 = seg[s][6];myled8 = seg[s][7]; -// wait(1); -// s=s+1; -// if (s >=10) { s=0;} -//} + for(c=0;c<100;c++){ + for(d=0;d<10000;d++){if(myin9 == 0)goto L_START;} + } + + f=f+1; + if (f >=9) { f=0;} + } +L_START: while(1) { @@ -104,7 +115,7 @@ // ichigojam // //10 'START 0.5 DATA 6BIT SOTP 1 -//20 OUT 12,1:WAIT 15 +//20 OUT 11,1:WAIT 15 //30 [0]=ASC("H") //40 [1]=ASC("A") //50 [2]=ASC("L")