Aliexpressなどで販売されている64x32のフルカラードットマトリクスLED2枚とNucleo F401REを利用して、 E233系の駅停車時、路線名表示ありのLED側面行先表示を再現するプログラムです。 3秒間隔、3段階切替で、路線名、種別、行先、次停車駅を個別に指定することが可能です。
Dependencies: SDFileSystem mbed
Revision 20:4f9719182866, committed 2014-11-24
- Comitter:
- chirashi
- Date:
- Mon Nov 24 13:10:14 2014 +0000
- Parent:
- 19:26e0fae24da6
- Child:
- 21:b536f614ba71
- Commit message:
- debug enable
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Nov 20 10:12:50 2014 +0000
+++ b/main.cpp Mon Nov 24 13:10:14 2014 +0000
@@ -72,7 +72,7 @@
Ticker ChangeTimer;
//Debug
-bool Debug = 0;
+bool Debug = 1;
//Mode
@@ -669,6 +669,22 @@
}
+ //Debug
+ if(Debug == 1){
+ //DataSerialOut
+ for(int y = 0; y < 32; y++){
+ for(int x = 0; x <128; x++){
+ if(LEDBuffer[y][x]== 0){
+ //pc.printf("0,");
+ pc.printf(" ");
+ }else{
+ //pc.printf("#");
+ pc.printf("%.02d",LEDBuffer[y][x]);
+ }
+ }
+ pc.printf("\r\n");
+ }
+ }
}