Aliexpressなどで販売されている64x32のフルカラードットマトリクスLED2枚とNucleo F401REを利用して、 E233系の駅停車時、路線名表示ありのLED側面行先表示を再現するプログラムです。 3秒間隔、3段階切替で、路線名、種別、行先、次停車駅を個別に指定することが可能です。
Dependencies: SDFileSystem mbed
main.cpp@21:b536f614ba71, 2014-11-27 (annotated)
- Committer:
- chirashi
- Date:
- Thu Nov 27 10:51:40 2014 +0000
- Revision:
- 21:b536f614ba71
- Parent:
- 20:4f9719182866
- Child:
- 22:ebab951db9f6
.;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RRacer | 0:1f58ecec51d6 | 1 | /* |
RRacer | 0:1f58ecec51d6 | 2 | The goal of this program is to show the basic connections and workings of Adafruits 32x16 RGB LED matrix board (http://www.adafruit.com/products/420), |
RRacer | 0:1f58ecec51d6 | 3 | also sold on other places, for instance http://www.ebay.com/itm/PH6-RGB-Full-Color-LED-16-32-Dot-Matrix-Display-Module-/310303408628?pt=LH_DefaultDomain_0&hash=item483f8641f4 (no |
RRacer | 0:1f58ecec51d6 | 4 | affiliation with either of them). |
RRacer | 0:1f58ecec51d6 | 5 | This program is not intended to be highly optimized or a guideline in C programming in any way (more of the opposite actually). |
RRacer | 1:dd0dcd303d6d | 6 | To have more than 7 colors on this thing, you need to implement software PWM of some sort. I have obviously not done that, but if YOU do, please let me know! |
RRacer | 1:dd0dcd303d6d | 7 | Adafruit have a wicked demo program for an arduino - www.youtube.com/watch?v=lY-flFEfsHo |
RRacer | 0:1f58ecec51d6 | 8 | There are probably lots of ways to make this perform better, perhaps by using Neal Hormans port of the Adafruit_GFX library (http://mbed.org/users/nkhorman/code/Adafruit_GFX/). |
RRacer | 0:1f58ecec51d6 | 9 | No error checking or out-of-bounds checking is done. Use at your own peril. |
RRacer | 0:1f58ecec51d6 | 10 | For more detailed information on the driver chip, see http://www.bjtopspace.com/ziliao/CYT62726.pdf |
RRacer | 0:1f58ecec51d6 | 11 | Although the chips on my board says jx15020, I've been informed that they are equvivalent to the CYT62726, and so far it's a match. |
RRacer | 0:1f58ecec51d6 | 12 | Feel free to use all or parts of this work. |
RRacer | 0:1f58ecec51d6 | 13 | If you choose to do so, I would appreciate a small mentioning in the scrolling opening credits ;) |
RRacer | 0:1f58ecec51d6 | 14 | |
RRacer | 0:1f58ecec51d6 | 15 | Best regards, |
RRacer | 0:1f58ecec51d6 | 16 | Hugo Harming |
RRacer | 0:1f58ecec51d6 | 17 | upgraded@hotmail.com |
RRacer | 0:1f58ecec51d6 | 18 | */ |
RRacer | 0:1f58ecec51d6 | 19 | |
RRacer | 0:1f58ecec51d6 | 20 | #include "mbed.h" |
chirashi | 13:0c542447e6da | 21 | #include "SDFileSystem.h" |
chirashi | 13:0c542447e6da | 22 | |
RRacer | 0:1f58ecec51d6 | 23 | #define LOW 0 |
RRacer | 0:1f58ecec51d6 | 24 | #define HIGH 1 |
RRacer | 0:1f58ecec51d6 | 25 | |
chirashi | 6:e6cb4a476422 | 26 | #define R_Debug1 0 |
chirashi | 6:e6cb4a476422 | 27 | #define R_Debug2 0 |
chirashi | 6:e6cb4a476422 | 28 | #define R_Debug3 0 |
chirashi | 6:e6cb4a476422 | 29 | #define R_Debug4 0 |
chirashi | 6:e6cb4a476422 | 30 | |
chirashi | 6:e6cb4a476422 | 31 | #define G_Debug1 0 |
chirashi | 6:e6cb4a476422 | 32 | #define G_Debug2 0 |
chirashi | 6:e6cb4a476422 | 33 | #define G_Debug3 0 |
chirashi | 6:e6cb4a476422 | 34 | #define G_Debug4 0 |
chirashi | 6:e6cb4a476422 | 35 | |
chirashi | 6:e6cb4a476422 | 36 | #define B_Debug1 0 |
chirashi | 6:e6cb4a476422 | 37 | #define B_Debug2 0 |
chirashi | 6:e6cb4a476422 | 38 | #define B_Debug3 0 |
chirashi | 6:e6cb4a476422 | 39 | #define B_Debug4 0 |
chirashi | 6:e6cb4a476422 | 40 | |
chirashi | 6:e6cb4a476422 | 41 | |
chirashi | 11:4be8dcbad9f1 | 42 | #define LED_Width 128 |
chirashi | 10:4d9cf202a845 | 43 | #define LED_Height 16 |
chirashi | 6:e6cb4a476422 | 44 | |
chirashi | 21:b536f614ba71 | 45 | #define DisplayWait 15 |
chirashi | 21:b536f614ba71 | 46 | |
chirashi | 14:0f4d44927b20 | 47 | |
chirashi | 13:0c542447e6da | 48 | SDFileSystem sd(D11, D12, D13, D10, "sd"); |
chirashi | 13:0c542447e6da | 49 | Serial pc(USBTX,USBRX ); |
chirashi | 21:b536f614ba71 | 50 | BusOut ABC(D8,D9,PB_13,PC_5); // Row address. |
chirashi | 21:b536f614ba71 | 51 | |
chirashi | 21:b536f614ba71 | 52 | |
chirashi | 21:b536f614ba71 | 53 | |
chirashi | 13:0c542447e6da | 54 | DigitalOut CLK(PB_14); // Data clock - rising edge |
chirashi | 13:0c542447e6da | 55 | DigitalOut LAT(PB_15); // Data latch - active low (pulse up after data load) |
chirashi | 13:0c542447e6da | 56 | DigitalOut OE(PB_1); // Output enable - active low (hold high during data load, bring low after LAT pulse) |
chirashi | 21:b536f614ba71 | 57 | //DigitalOut R1(D6); // RED Serial in for upper half |
chirashi | 21:b536f614ba71 | 58 | //DigitalOut R2(D7); // RED Serial in for lower half |
chirashi | 21:b536f614ba71 | 59 | //DigitalOut G1(D2); // GREEN Serial in for upper half |
chirashi | 21:b536f614ba71 | 60 | //DigitalOut G2(D3); // GREEN Serial in for lower half |
chirashi | 21:b536f614ba71 | 61 | //DigitalOut B1(D4); // BLUE Serial in for upper half |
chirashi | 21:b536f614ba71 | 62 | //DigitalOut B2(D5); // BLUE Serial in for lower half |
chirashi | 21:b536f614ba71 | 63 | |
chirashi | 21:b536f614ba71 | 64 | DigitalOut R1(D4); // RED Serial in for upper half |
chirashi | 21:b536f614ba71 | 65 | DigitalOut R2(D5); // RED Serial in for lower half |
chirashi | 21:b536f614ba71 | 66 | DigitalOut G1(D6); // GREEN Serial in for upper half |
chirashi | 21:b536f614ba71 | 67 | DigitalOut G2(D7); // GREEN Serial in for lower half |
chirashi | 21:b536f614ba71 | 68 | DigitalOut B1(D2); // BLUE Serial in for upper half |
chirashi | 21:b536f614ba71 | 69 | DigitalOut B2(D3); // BLUE Serial in for lower half |
chirashi | 21:b536f614ba71 | 70 | |
chirashi | 21:b536f614ba71 | 71 | |
chirashi | 21:b536f614ba71 | 72 | |
chirashi | 12:680db9f1f4eb | 73 | |
chirashi | 12:680db9f1f4eb | 74 | |
chirashi | 13:0c542447e6da | 75 | //SumSW |
chirashi | 13:0c542447e6da | 76 | DigitalOut SCK(PB_7); |
chirashi | 13:0c542447e6da | 77 | DigitalOut SI(PC_13); |
chirashi | 13:0c542447e6da | 78 | DigitalOut RCK(PC_14); |
chirashi | 13:0c542447e6da | 79 | |
chirashi | 13:0c542447e6da | 80 | DigitalIn SumSW1(PA_0); |
chirashi | 13:0c542447e6da | 81 | DigitalIn SumSW2(PA_1); |
chirashi | 13:0c542447e6da | 82 | DigitalIn SumSW4(PA_4); |
chirashi | 13:0c542447e6da | 83 | DigitalIn SumSW8(PB_0); |
chirashi | 13:0c542447e6da | 84 | |
chirashi | 14:0f4d44927b20 | 85 | //BusIn SumSWNum(PA_0,PA_1,PA_4,PB_0); |
chirashi | 13:0c542447e6da | 86 | |
chirashi | 8:9d22c9910917 | 87 | Ticker ChangeTimer; |
chirashi | 13:0c542447e6da | 88 | |
chirashi | 14:0f4d44927b20 | 89 | //Debug |
chirashi | 21:b536f614ba71 | 90 | bool Debug = 0; |
chirashi | 13:0c542447e6da | 91 | |
chirashi | 13:0c542447e6da | 92 | |
chirashi | 19:26e0fae24da6 | 93 | //Mode |
chirashi | 19:26e0fae24da6 | 94 | |
chirashi | 19:26e0fae24da6 | 95 | //3:固定表示 LEDBuffer3固定 |
chirashi | 19:26e0fae24da6 | 96 | |
chirashi | 19:26e0fae24da6 | 97 | //1固定 |
chirashi | 19:26e0fae24da6 | 98 | int WriteMode = 1; |
chirashi | 19:26e0fae24da6 | 99 | |
chirashi | 19:26e0fae24da6 | 100 | |
chirashi | 19:26e0fae24da6 | 101 | |
chirashi | 19:26e0fae24da6 | 102 | //1:3段階 LEDBuffer-LEDBuffer2-LEDBuffer3 |
chirashi | 19:26e0fae24da6 | 103 | //2:2段階 LEDBuffer-LEDBuffer2 |
chirashi | 19:26e0fae24da6 | 104 | //3:固定 LEDBuffer2 |
chirashi | 19:26e0fae24da6 | 105 | //4:2段階 LEDBuffer2-LEDBuffer3 |
chirashi | 19:26e0fae24da6 | 106 | int DisplayMode = 1; |
chirashi | 19:26e0fae24da6 | 107 | |
chirashi | 17:95bcbc53d96b | 108 | int ChangeCount = 0; |
chirashi | 17:95bcbc53d96b | 109 | int LineNumber = 37; |
chirashi | 17:95bcbc53d96b | 110 | int KindNumber = 1; |
chirashi | 17:95bcbc53d96b | 111 | int ForNumber = 1; |
chirashi | 17:95bcbc53d96b | 112 | int NextStaNumber = 1; |
chirashi | 17:95bcbc53d96b | 113 | char SerialBuffer[30]; |
chirashi | 17:95bcbc53d96b | 114 | int count = 0; |
chirashi | 13:0c542447e6da | 115 | |
chirashi | 13:0c542447e6da | 116 | //SDCardFilePath |
chirashi | 17:95bcbc53d96b | 117 | char SDFilePath[80]= "/sd/a.txt"; |
chirashi | 13:0c542447e6da | 118 | |
RRacer | 0:1f58ecec51d6 | 119 | unsigned char gm[32][6]; // Buffer with 32x6 bytes. Graphics memory if you like. |
RRacer | 0:1f58ecec51d6 | 120 | unsigned long CT; // Counter for demo code |
RRacer | 0:1f58ecec51d6 | 121 | |
chirashi | 13:0c542447e6da | 122 | |
chirashi | 13:0c542447e6da | 123 | |
chirashi | 15:12895e9c6965 | 124 | int8_t LEDBuffer [32][128] = { |
chirashi | 12:680db9f1f4eb | 125 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,7,7,7,0,0,0,0,0,0,7,7,7,7,7,0,0,0,0,0,0,7,7,7,15,15,15,15,15,15,15,15,15,15,15,0,0,0,0,15,7,7,7,0,0,0,0,0,7,7,7,15,0,0,0,0,0,0,0}, |
chirashi | 12:680db9f1f4eb | 152 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,7,7,7,0,0,0,0,0,0,0,7,7,7,7,0,0,0,0,0,0,7,7,7,7,7,7,7,7,7,7,7,7,7,7,0,0,0,15,7,7,7,0,0,0,0,0,0,0,7,7,7,15,0,0,0,0,0,0}, |
chirashi | 12:680db9f1f4eb | 153 | {14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,7,7,7,14,14,14,14,14,14,14,14,7,7,7,14,14,14,14,14,14,7,7,7,7,7,7,7,7,7,7,7,7,7,7,14,14,15,7,7,7,14,14,14,14,14,14,14,14,14,7,7,7,15,14,14,14,14,14}, |
chirashi | 12:680db9f1f4eb | 154 | {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,7,7,7,1,1,1,1,1,1,1,1,1,7,7,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,1,1,7,7,7,1,1,1,1,1,1,1,1,1,1,1,7,7,7,1,1,1,1,1}, |
chirashi | 12:680db9f1f4eb | 155 | {14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14}, |
chirashi | 12:680db9f1f4eb | 156 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
chirashi | 12:680db9f1f4eb | 157 | |
chirashi | 9:ab87b0e361aa | 158 | |
chirashi | 8:9d22c9910917 | 159 | }; |
chirashi | 6:e6cb4a476422 | 160 | |
chirashi | 15:12895e9c6965 | 161 | int8_t LEDBuffer2[32][128] = { |
chirashi | 14:0f4d44927b20 | 162 | {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,7,7,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,7,7,7,0,0,0,0,0,0,0,0,0,7,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,7,0,0,7,7,0,7,7,0,0}, |
chirashi | 14:0f4d44927b20 | 192 | {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,7,0,7,7,7,7,0,0,0,7,7,7,7,0,7,7,7,0,0,0,0,0,0,7,7,0,0,0,0,0,0,0,0,0,0,7,7,0,7,7,0,7,7,7,7,0,0,7,7,0}, |
chirashi | 14:0f4d44927b20 | 193 | {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,7,0,7,7,0,0,0,0,0,0,7,7,0,0,0,7,0,0,0,0,0,0,0,7,7,0,0,0,0,0,0,0,0,0,0,7,7,0,0,0,0,0,7,7,0,0,0,0,0,0} |
chirashi | 8:9d22c9910917 | 194 | |
chirashi | 8:9d22c9910917 | 195 | }; |
chirashi | 8:9d22c9910917 | 196 | |
chirashi | 15:12895e9c6965 | 197 | int8_t LEDBuffer3[32][128] = { |
chirashi | 12:680db9f1f4eb | 198 | {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
chirashi | 12:680db9f1f4eb | 199 | {9,9,9,9,9,9,9,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9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,7,7,0,0,0,0,7,0,0,0,0,7,7,0,7,0,7,0,0,0,7,0,0,7,7,7,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
chirashi | 12:680db9f1f4eb | 229 | {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
chirashi | 8:9d22c9910917 | 230 | |
chirashi | 8:9d22c9910917 | 231 | }; |
chirashi | 21:b536f614ba71 | 232 | |
chirashi | 21:b536f614ba71 | 233 | int8_t LEDMainBuffer[32][128] = { |
chirashi | 21:b536f614ba71 | 234 | {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
chirashi | 21:b536f614ba71 | 235 | {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9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0,0,0,0,0,0,7,7,7,0,0,0,0,7,0,0,0,0,7,7,0,7,0,7,0,0,0,7,0,0,7,7,7,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
chirashi | 21:b536f614ba71 | 265 | {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
chirashi | 21:b536f614ba71 | 266 | |
chirashi | 21:b536f614ba71 | 267 | }; |
chirashi | 21:b536f614ba71 | 268 | |
chirashi | 21:b536f614ba71 | 269 | |
chirashi | 19:26e0fae24da6 | 270 | //01 Red |
chirashi | 19:26e0fae24da6 | 271 | //02 Green |
chirashi | 19:26e0fae24da6 | 272 | //03 Blue |
chirashi | 19:26e0fae24da6 | 273 | //04 Yellow(R,G) |
chirashi | 19:26e0fae24da6 | 274 | //05(G,B) |
chirashi | 19:26e0fae24da6 | 275 | //06 purple(R,B) |
chirashi | 19:26e0fae24da6 | 276 | //08 Blue(Keihin-tohoku Line) |
chirashi | 9:ab87b0e361aa | 277 | //10 Yellow(Nambu Local) |
chirashi | 9:ab87b0e361aa | 278 | //11 Green (Yokohama Line) |
chirashi | 12:680db9f1f4eb | 279 | //12 Orange(Rapid Acty,Urbun) |
chirashi | 16:d02248f44c4b | 280 | |
chirashi | 19:26e0fae24da6 | 281 | //13 Green(Saikyo Line) |
chirashi | 19:26e0fae24da6 | 282 | |
chirashi | 16:d02248f44c4b | 283 | //16 Green(Utsunomiya Line) |
chirashi | 19:26e0fae24da6 | 284 | //17 Green(Joban Local Local) |
chirashi | 19:26e0fae24da6 | 285 | bool R1Data1[32]={0,1,0,0,1,0,1,1,0,1,1,1,1,0,1,1,0,0}; |
chirashi | 19:26e0fae24da6 | 286 | bool R1Data2[32]={0,1,0,0,1,0,1,1,0,1,1,0,1,0,0,0,0,0}; |
chirashi | 19:26e0fae24da6 | 287 | bool R1Data3[32]={0,1,0,0,1,0,1,1,0,1,1,0,1,0,0,0,0,0}; |
chirashi | 19:26e0fae24da6 | 288 | bool R1Data4[32]={0,1,0,0,1,0,1,1,0,1,0,0,1,0,0,0,0,0}; |
chirashi | 4:245f17936b1a | 289 | |
chirashi | 19:26e0fae24da6 | 290 | bool G1Data1[32]={0,0,1,0,1,1,0,1,1,0,1,1,1,1,0,1,1,1}; |
chirashi | 19:26e0fae24da6 | 291 | bool G1Data2[32]={0,0,1,0,1,1,0,1,1,0,1,1,0,0,0,0,1,1}; |
chirashi | 19:26e0fae24da6 | 292 | bool G1Data3[32]={0,0,1,0,1,1,0,1,0,0,0,0,0,0,0,0,0,1}; |
chirashi | 19:26e0fae24da6 | 293 | bool G1Data4[32]={0,0,1,0,1,1,0,1,0,0,0,0,0,0,0,0,0,1}; |
chirashi | 7:79dfe71beb88 | 294 | |
chirashi | 19:26e0fae24da6 | 295 | bool B1Data1[32]={0,0,0,1,0,1,1,1,1,1,0,0,0,0,0,1,0,1}; |
chirashi | 19:26e0fae24da6 | 296 | bool B1Data2[32]={0,0,0,1,0,1,1,1,1,0,0,0,0,0,0,0,0,1}; |
chirashi | 19:26e0fae24da6 | 297 | bool B1Data3[32]={0,0,0,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0}; |
chirashi | 19:26e0fae24da6 | 298 | bool B1Data4[32]={0,0,0,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0}; |
chirashi | 7:79dfe71beb88 | 299 | |
chirashi | 7:79dfe71beb88 | 300 | |
chirashi | 7:79dfe71beb88 | 301 | |
chirashi | 7:79dfe71beb88 | 302 | |
RRacer | 0:1f58ecec51d6 | 303 | |
RRacer | 0:1f58ecec51d6 | 304 | void Init() |
RRacer | 0:1f58ecec51d6 | 305 | { |
RRacer | 0:1f58ecec51d6 | 306 | // Set up things to a known state |
RRacer | 0:1f58ecec51d6 | 307 | CLK = LOW; |
RRacer | 0:1f58ecec51d6 | 308 | LAT = LOW; |
RRacer | 0:1f58ecec51d6 | 309 | OE = HIGH; //display off |
RRacer | 0:1f58ecec51d6 | 310 | ABC = 0; |
RRacer | 0:1f58ecec51d6 | 311 | CT=0; |
chirashi | 7:79dfe71beb88 | 312 | |
RRacer | 0:1f58ecec51d6 | 313 | } |
RRacer | 0:1f58ecec51d6 | 314 | |
RRacer | 0:1f58ecec51d6 | 315 | |
RRacer | 0:1f58ecec51d6 | 316 | |
chirashi | 15:12895e9c6965 | 317 | void WrRow(unsigned char Row, int8_t Buffer[32][128]) |
RRacer | 0:1f58ecec51d6 | 318 | { |
RRacer | 0:1f58ecec51d6 | 319 | // Write specified row (and row+8) to display. Valid input: 0 to 7. |
chirashi | 10:4d9cf202a845 | 320 | ABC = 15-Row; // Set row address |
chirashi | 6:e6cb4a476422 | 321 | for(int col=0; col<LED_Width; col++) { // To daisychain more displays, I guess you would have to increase this counter to n*32 columns. Might mirror though. |
chirashi | 5:532937f20397 | 322 | |
chirashi | 10:4d9cf202a845 | 323 | if (Buffer [(15-Row)][col] == 0){ |
chirashi | 6:e6cb4a476422 | 324 | R1 = R_Debug1; |
chirashi | 6:e6cb4a476422 | 325 | G1 = G_Debug1; |
chirashi | 6:e6cb4a476422 | 326 | B1 = B_Debug1; |
chirashi | 7:79dfe71beb88 | 327 | }else { |
chirashi | 8:9d22c9910917 | 328 | //R1 = R1Data1[(LEDBuffer [(7-Row)][col])]; |
chirashi | 8:9d22c9910917 | 329 | //G1 = G1Data1[(LEDBuffer [(7-Row)][col])]; |
chirashi | 8:9d22c9910917 | 330 | //B1 = B1Data1[(LEDBuffer [(7-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 331 | R1 = R1Data1[(Buffer [(15-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 332 | G1 = G1Data1[(Buffer [(15-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 333 | B1 = B1Data1[(Buffer [(15-Row)][col])]; |
chirashi | 4:245f17936b1a | 334 | } |
chirashi | 7:79dfe71beb88 | 335 | |
chirashi | 10:4d9cf202a845 | 336 | if (Buffer [(31-Row)][col] == 0){ |
chirashi | 6:e6cb4a476422 | 337 | R2 = R_Debug1; |
chirashi | 6:e6cb4a476422 | 338 | G2 = G_Debug1; |
chirashi | 6:e6cb4a476422 | 339 | B2 = B_Debug1; |
chirashi | 7:79dfe71beb88 | 340 | }else { |
chirashi | 10:4d9cf202a845 | 341 | R2 = R1Data1[(Buffer [(31-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 342 | G2 = G1Data1[(Buffer [(31-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 343 | B2 = B1Data1[(Buffer [(31-Row)][col])]; |
chirashi | 7:79dfe71beb88 | 344 | } |
chirashi | 4:245f17936b1a | 345 | |
chirashi | 4:245f17936b1a | 346 | CLK = HIGH; // tick (clock bit in) |
chirashi | 4:245f17936b1a | 347 | CLK = LOW; // tock |
chirashi | 4:245f17936b1a | 348 | } |
chirashi | 4:245f17936b1a | 349 | LAT = HIGH; // Latch entire row |
chirashi | 4:245f17936b1a | 350 | LAT = LOW; |
chirashi | 4:245f17936b1a | 351 | } |
chirashi | 4:245f17936b1a | 352 | |
chirashi | 15:12895e9c6965 | 353 | void WrRow2(unsigned char Row,int8_t Buffer[32][128]) |
chirashi | 4:245f17936b1a | 354 | { |
chirashi | 4:245f17936b1a | 355 | // Write specified row (and row+8) to display. Valid input: 0 to 7. |
chirashi | 10:4d9cf202a845 | 356 | ABC = 15-Row; // Set row address |
chirashi | 6:e6cb4a476422 | 357 | for(int col=0; col<LED_Width; col++) { // To daisychain more displays, I guess you would have to increase this counter to n*32 columns. Might mirror though. |
chirashi | 5:532937f20397 | 358 | |
chirashi | 10:4d9cf202a845 | 359 | if (Buffer [(15-Row)][col] == 0){ |
chirashi | 6:e6cb4a476422 | 360 | R1 = R_Debug2; |
chirashi | 6:e6cb4a476422 | 361 | G1 = G_Debug2; |
chirashi | 6:e6cb4a476422 | 362 | B1 = B_Debug2; |
chirashi | 5:532937f20397 | 363 | }else{ |
chirashi | 10:4d9cf202a845 | 364 | R1 = R1Data2[(Buffer [(15-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 365 | G1 = G1Data2[(Buffer [(15-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 366 | B1 = B1Data2[(Buffer [(15-Row)][col])]; |
chirashi | 5:532937f20397 | 367 | } |
chirashi | 5:532937f20397 | 368 | |
chirashi | 10:4d9cf202a845 | 369 | if (Buffer [(31-Row)][col] == 0){ |
chirashi | 6:e6cb4a476422 | 370 | R2 = R_Debug2; |
chirashi | 6:e6cb4a476422 | 371 | G2 = G_Debug2; |
chirashi | 6:e6cb4a476422 | 372 | B2 = B_Debug2; |
chirashi | 6:e6cb4a476422 | 373 | }else{ |
chirashi | 10:4d9cf202a845 | 374 | R2 = R1Data2[(Buffer [(31-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 375 | G2 = G1Data2[(Buffer [(31-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 376 | B2 = B1Data2[(Buffer [(31-Row)][col])]; |
chirashi | 7:79dfe71beb88 | 377 | } |
chirashi | 5:532937f20397 | 378 | |
chirashi | 5:532937f20397 | 379 | CLK = HIGH; // tick (clock bit in) |
chirashi | 5:532937f20397 | 380 | CLK = LOW; // tock |
chirashi | 5:532937f20397 | 381 | } |
chirashi | 5:532937f20397 | 382 | LAT = HIGH; // Latch entire row |
chirashi | 5:532937f20397 | 383 | LAT = LOW; |
chirashi | 5:532937f20397 | 384 | } |
chirashi | 5:532937f20397 | 385 | |
chirashi | 15:12895e9c6965 | 386 | void WrRow3(unsigned char Row,int8_t Buffer[32][128]) |
chirashi | 5:532937f20397 | 387 | { |
chirashi | 5:532937f20397 | 388 | // Write specified row (and row+8) to display. Valid input: 0 to 7. |
chirashi | 10:4d9cf202a845 | 389 | ABC = 15-Row; // Set row address |
chirashi | 6:e6cb4a476422 | 390 | for(int col=0; col<LED_Width; col++) { // To daisychain more displays, I guess you would have to increase this counter to n*32 columns. Might mirror though. |
chirashi | 5:532937f20397 | 391 | |
chirashi | 10:4d9cf202a845 | 392 | if (Buffer [(15-Row)][col] == 0){ |
chirashi | 6:e6cb4a476422 | 393 | R1 = R_Debug3; |
chirashi | 6:e6cb4a476422 | 394 | G1 = G_Debug3; |
chirashi | 6:e6cb4a476422 | 395 | B1 = B_Debug3; |
chirashi | 5:532937f20397 | 396 | }else{ |
chirashi | 10:4d9cf202a845 | 397 | R1 = R1Data3[(Buffer [(15-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 398 | G1 = G1Data3[(Buffer [(15-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 399 | B1 = B1Data3[(Buffer [(15-Row)][col])]; |
chirashi | 5:532937f20397 | 400 | } |
chirashi | 5:532937f20397 | 401 | |
chirashi | 10:4d9cf202a845 | 402 | if (Buffer [(31-Row)][col] == 0){ |
chirashi | 6:e6cb4a476422 | 403 | R2 = R_Debug3; |
chirashi | 6:e6cb4a476422 | 404 | G2 = G_Debug3; |
chirashi | 6:e6cb4a476422 | 405 | B2 = B_Debug3; |
chirashi | 5:532937f20397 | 406 | }else{ |
chirashi | 10:4d9cf202a845 | 407 | R2 = R1Data3[(Buffer [(31-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 408 | G2 = G1Data3[(Buffer [(31-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 409 | B2 = B1Data3[(Buffer [(31-Row)][col])]; |
chirashi | 7:79dfe71beb88 | 410 | } |
chirashi | 5:532937f20397 | 411 | |
chirashi | 5:532937f20397 | 412 | CLK = HIGH; // tick (clock bit in) |
chirashi | 5:532937f20397 | 413 | CLK = LOW; // tock |
chirashi | 5:532937f20397 | 414 | } |
chirashi | 5:532937f20397 | 415 | LAT = HIGH; // Latch entire row |
chirashi | 5:532937f20397 | 416 | LAT = LOW; |
chirashi | 5:532937f20397 | 417 | } |
chirashi | 5:532937f20397 | 418 | |
chirashi | 15:12895e9c6965 | 419 | void WrRow4(unsigned char Row,int8_t Buffer[32][128]) |
chirashi | 5:532937f20397 | 420 | { |
chirashi | 5:532937f20397 | 421 | // Write specified row (and row+8) to display. Valid input: 0 to 7. |
chirashi | 10:4d9cf202a845 | 422 | ABC = 15-Row; // Set row address |
chirashi | 6:e6cb4a476422 | 423 | for(int col=0; col<LED_Width; col++) { // To daisychain more displays, I guess you would have to increase this counter to n*32 columns. Might mirror though. |
chirashi | 5:532937f20397 | 424 | |
chirashi | 10:4d9cf202a845 | 425 | if (Buffer [(15-Row)][col] == 0){ |
chirashi | 6:e6cb4a476422 | 426 | R1 = R_Debug4; |
chirashi | 6:e6cb4a476422 | 427 | G1 = G_Debug4; |
chirashi | 6:e6cb4a476422 | 428 | B1 = B_Debug4; |
chirashi | 5:532937f20397 | 429 | }else{ |
chirashi | 10:4d9cf202a845 | 430 | R1 = R1Data4[(Buffer [(15-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 431 | G1 = G1Data4[(Buffer [(15-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 432 | B1 = B1Data4[(Buffer [(15-Row)][col])]; |
chirashi | 5:532937f20397 | 433 | } |
chirashi | 5:532937f20397 | 434 | |
chirashi | 10:4d9cf202a845 | 435 | if (Buffer [(31-Row)][col] == 0){ |
chirashi | 6:e6cb4a476422 | 436 | R2 = R_Debug4; |
chirashi | 6:e6cb4a476422 | 437 | G2 = G_Debug4; |
chirashi | 6:e6cb4a476422 | 438 | B2 = B_Debug4; |
chirashi | 10:4d9cf202a845 | 439 | }else{ |
chirashi | 10:4d9cf202a845 | 440 | R2 = R1Data4[(Buffer [(31-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 441 | G2 = G1Data4[(Buffer [(31-Row)][col])]; |
chirashi | 10:4d9cf202a845 | 442 | B2 = B1Data4[(Buffer [(31-Row)][col])]; |
chirashi | 7:79dfe71beb88 | 443 | } |
chirashi | 5:532937f20397 | 444 | |
chirashi | 5:532937f20397 | 445 | CLK = HIGH; // tick (clock bit in) |
chirashi | 5:532937f20397 | 446 | CLK = LOW; // tock |
chirashi | 5:532937f20397 | 447 | } |
chirashi | 5:532937f20397 | 448 | LAT = HIGH; // Latch entire row |
chirashi | 5:532937f20397 | 449 | LAT = LOW; |
chirashi | 5:532937f20397 | 450 | } |
chirashi | 5:532937f20397 | 451 | |
chirashi | 4:245f17936b1a | 452 | |
chirashi | 3:6dbbc0130e96 | 453 | void WrRowOFF(unsigned char Row) |
chirashi | 3:6dbbc0130e96 | 454 | { |
chirashi | 3:6dbbc0130e96 | 455 | // Write specified row (and row+8) to display. Valid input: 0 to 7. |
chirashi | 10:4d9cf202a845 | 456 | ABC = 15-Row; // Set row address |
chirashi | 6:e6cb4a476422 | 457 | for(int col=0; col<LED_Width; col++) { // To daisychain more displays, I guess you would have to increase this counter to n*32 columns. Might mirror though. |
chirashi | 3:6dbbc0130e96 | 458 | R1 = 0; // Red bit, upper half |
chirashi | 3:6dbbc0130e96 | 459 | G1 = 0; // Green bit, upper half |
chirashi | 3:6dbbc0130e96 | 460 | B1 = 0; // Blue bit, upper half |
chirashi | 3:6dbbc0130e96 | 461 | R2 = 0; // Red bit, lower half |
chirashi | 3:6dbbc0130e96 | 462 | G2 = 0; // Green bit, lower half |
chirashi | 3:6dbbc0130e96 | 463 | B2 = 0; // Blue bit, lower half |
chirashi | 3:6dbbc0130e96 | 464 | CLK = HIGH; // tick (clock bit in) |
chirashi | 3:6dbbc0130e96 | 465 | CLK = LOW; // tock |
chirashi | 3:6dbbc0130e96 | 466 | } |
chirashi | 3:6dbbc0130e96 | 467 | LAT = HIGH; // Latch entire row |
chirashi | 3:6dbbc0130e96 | 468 | LAT = LOW; |
chirashi | 3:6dbbc0130e96 | 469 | } |
chirashi | 3:6dbbc0130e96 | 470 | |
RRacer | 0:1f58ecec51d6 | 471 | void Pset(unsigned char x,unsigned char y, unsigned char c) |
RRacer | 0:1f58ecec51d6 | 472 | { |
RRacer | 0:1f58ecec51d6 | 473 | // Set pixel (x,y) to color c |
RRacer | 0:1f58ecec51d6 | 474 | // Manipulates graphics memory, so you won't see any change til you Paint() it. |
RRacer | 0:1f58ecec51d6 | 475 | unsigned char ud,l,r0,g0,b0; |
RRacer | 0:1f58ecec51d6 | 476 | ud=(y & 8)>>3; // 0 = upper half, 1 = lower half |
RRacer | 0:1f58ecec51d6 | 477 | l=y & 7; // Extract row in upper/lower half |
RRacer | 0:1f58ecec51d6 | 478 | r0=(c & 4) >>2; // Extract red bit from color |
RRacer | 0:1f58ecec51d6 | 479 | g0=(c & 2) >>1; // Extract green bit from color |
RRacer | 0:1f58ecec51d6 | 480 | b0=(c & 1); // Extract blue bit from color |
RRacer | 0:1f58ecec51d6 | 481 | // *******Removes current bit ******* *Adds bit** |
RRacer | 0:1f58ecec51d6 | 482 | gm[x][0+3*ud]=(gm[x][0+3*ud] & (255-(1<<(7-l))))+(r0<<(7-l)); // Red byte |
RRacer | 0:1f58ecec51d6 | 483 | gm[x][1+3*ud]=(gm[x][1+3*ud] & (255-(1<<(7-l))))+(g0<<(7-l)); // Green byte |
RRacer | 0:1f58ecec51d6 | 484 | gm[x][2+3*ud]=(gm[x][2+3*ud] & (255-(1<<(7-l))))+(b0<<(7-l)); // Blue byte |
RRacer | 0:1f58ecec51d6 | 485 | } |
RRacer | 0:1f58ecec51d6 | 486 | |
chirashi | 15:12895e9c6965 | 487 | void Paint(int8_t Buffer2[32][128]) |
RRacer | 0:1f58ecec51d6 | 488 | { |
RRacer | 0:1f58ecec51d6 | 489 | // Write graphics memory to display |
chirashi | 5:532937f20397 | 490 | //1 |
chirashi | 9:ab87b0e361aa | 491 | for(int Row=0; Row<LED_Height; Row++) { |
RRacer | 0:1f58ecec51d6 | 492 | OE = HIGH; // Disable output |
chirashi | 8:9d22c9910917 | 493 | WrRow(Row,Buffer2); |
chirashi | 5:532937f20397 | 494 | //wait_us(10); |
chirashi | 5:532937f20397 | 495 | OE = LOW; // Enable output |
chirashi | 5:532937f20397 | 496 | |
chirashi | 21:b536f614ba71 | 497 | wait_us(DisplayWait); // Wasting some time. Use for whatever else. Probably better with a ticker for the display refresh. |
chirashi | 5:532937f20397 | 498 | } |
chirashi | 5:532937f20397 | 499 | //2 |
chirashi | 9:ab87b0e361aa | 500 | for(int Row=0; Row<LED_Height; Row++) { |
chirashi | 5:532937f20397 | 501 | OE = HIGH; // Disable output |
chirashi | 5:532937f20397 | 502 | //WrRow(Row); |
chirashi | 8:9d22c9910917 | 503 | WrRow2(Row,Buffer2); |
chirashi | 5:532937f20397 | 504 | //wait_us(10); |
chirashi | 5:532937f20397 | 505 | OE = LOW; // Enable output |
chirashi | 5:532937f20397 | 506 | |
chirashi | 21:b536f614ba71 | 507 | wait_us(DisplayWait); // Wasting some time. Use for whatever else. Probably better with a ticker for the display refresh. |
chirashi | 5:532937f20397 | 508 | } |
chirashi | 5:532937f20397 | 509 | //3 |
chirashi | 9:ab87b0e361aa | 510 | for(int Row=0; Row<LED_Height; Row++) { |
chirashi | 5:532937f20397 | 511 | OE = HIGH; // Disable output |
chirashi | 8:9d22c9910917 | 512 | WrRow3(Row,Buffer2); |
chirashi | 5:532937f20397 | 513 | //wait_us(10); |
chirashi | 5:532937f20397 | 514 | OE = LOW; // Enable output |
chirashi | 5:532937f20397 | 515 | |
chirashi | 21:b536f614ba71 | 516 | wait_us(DisplayWait); // Wasting some time. Use for whatever else. Probably better with a ticker for the display refresh. |
chirashi | 5:532937f20397 | 517 | } |
chirashi | 5:532937f20397 | 518 | //4 |
chirashi | 9:ab87b0e361aa | 519 | for(int Row=0; Row<LED_Height; Row++) { |
chirashi | 5:532937f20397 | 520 | OE = HIGH; // Disable output |
chirashi | 8:9d22c9910917 | 521 | WrRow4(Row,Buffer2); |
chirashi | 5:532937f20397 | 522 | //wait_us(10); |
RRacer | 0:1f58ecec51d6 | 523 | OE = LOW; // Enable output |
chirashi | 4:245f17936b1a | 524 | |
chirashi | 21:b536f614ba71 | 525 | wait_us(DisplayWait); // Wasting some time. Use for whatever else. Probably better with a ticker for the display refresh. |
chirashi | 13:0c542447e6da | 526 | } |
chirashi | 4:245f17936b1a | 527 | } |
chirashi | 4:245f17936b1a | 528 | |
RRacer | 0:1f58ecec51d6 | 529 | |
chirashi | 3:6dbbc0130e96 | 530 | |
chirashi | 3:6dbbc0130e96 | 531 | void PaintOFF() |
chirashi | 3:6dbbc0130e96 | 532 | { |
chirashi | 3:6dbbc0130e96 | 533 | // Write graphics memory to display |
chirashi | 3:6dbbc0130e96 | 534 | for(int Row=0; Row<8; Row++) { |
chirashi | 3:6dbbc0130e96 | 535 | OE = HIGH; // Disable output |
chirashi | 3:6dbbc0130e96 | 536 | WrRowOFF(Row); |
chirashi | 3:6dbbc0130e96 | 537 | OE = LOW; // Enable output |
chirashi | 4:245f17936b1a | 538 | wait_us(50); // Wasting some time. Use for whatever else. Probably better with a ticker for the display refresh. |
chirashi | 3:6dbbc0130e96 | 539 | } |
chirashi | 3:6dbbc0130e96 | 540 | } |
chirashi | 3:6dbbc0130e96 | 541 | |
chirashi | 8:9d22c9910917 | 542 | void TimerTick(){ |
chirashi | 19:26e0fae24da6 | 543 | |
chirashi | 19:26e0fae24da6 | 544 | //DisplayMode = 1 3段階表示ならば |
chirashi | 19:26e0fae24da6 | 545 | if(DisplayMode == 1){ |
chirashi | 19:26e0fae24da6 | 546 | if (ChangeCount == 0){ |
chirashi | 19:26e0fae24da6 | 547 | ChangeCount = ChangeCount + 1; |
chirashi | 19:26e0fae24da6 | 548 | }else if(ChangeCount == 1 ){ |
chirashi | 19:26e0fae24da6 | 549 | ChangeCount = ChangeCount + 1; |
chirashi | 19:26e0fae24da6 | 550 | //ChangeCount = 0; |
chirashi | 19:26e0fae24da6 | 551 | }else if(ChangeCount == 2){ |
chirashi | 19:26e0fae24da6 | 552 | ChangeCount = 0; |
chirashi | 19:26e0fae24da6 | 553 | }else{ |
chirashi | 19:26e0fae24da6 | 554 | ChangeCount = 0; |
chirashi | 19:26e0fae24da6 | 555 | } |
chirashi | 19:26e0fae24da6 | 556 | } |
chirashi | 19:26e0fae24da6 | 557 | //DisplayMode = 2 2段階表示ならば |
chirashi | 19:26e0fae24da6 | 558 | //次駅表示なし2段階表示に使用 |
chirashi | 19:26e0fae24da6 | 559 | else if (DisplayMode == 2){ |
chirashi | 19:26e0fae24da6 | 560 | |
chirashi | 19:26e0fae24da6 | 561 | if(ChangeCount == 0 ){ |
chirashi | 19:26e0fae24da6 | 562 | ChangeCount = ChangeCount + 1; |
chirashi | 19:26e0fae24da6 | 563 | //ChangeCount = 0; |
chirashi | 19:26e0fae24da6 | 564 | }else if(ChangeCount == 1){ |
chirashi | 19:26e0fae24da6 | 565 | ChangeCount = 0; |
chirashi | 19:26e0fae24da6 | 566 | }else{ |
chirashi | 19:26e0fae24da6 | 567 | ChangeCount = 0; |
chirashi | 19:26e0fae24da6 | 568 | } |
chirashi | 19:26e0fae24da6 | 569 | } |
chirashi | 19:26e0fae24da6 | 570 | //DisplayMode = 3 ならば LEDBuffer2を固定表示 |
chirashi | 19:26e0fae24da6 | 571 | else if (DisplayMode == 3){ |
chirashi | 19:26e0fae24da6 | 572 | ChangeCount = 1; |
chirashi | 19:26e0fae24da6 | 573 | } |
chirashi | 19:26e0fae24da6 | 574 | |
chirashi | 19:26e0fae24da6 | 575 | //2段階表示 次駅表示あり、路線名なしパターンに使用 |
chirashi | 19:26e0fae24da6 | 576 | else if(DisplayMode == 4){ |
chirashi | 19:26e0fae24da6 | 577 | if(ChangeCount == 1 ){ |
chirashi | 19:26e0fae24da6 | 578 | ChangeCount = ChangeCount + 1; |
chirashi | 19:26e0fae24da6 | 579 | }else{ |
chirashi | 19:26e0fae24da6 | 580 | ChangeCount = 1; |
chirashi | 19:26e0fae24da6 | 581 | } |
chirashi | 19:26e0fae24da6 | 582 | } |
chirashi | 19:26e0fae24da6 | 583 | |
chirashi | 19:26e0fae24da6 | 584 | |
chirashi | 19:26e0fae24da6 | 585 | |
chirashi | 19:26e0fae24da6 | 586 | |
chirashi | 13:0c542447e6da | 587 | } |
chirashi | 13:0c542447e6da | 588 | |
chirashi | 14:0f4d44927b20 | 589 | //書込み対象バッファ,書込み開始位置x,書込み開始位置y,読み出し幅x,読み出し高さy |
chirashi | 15:12895e9c6965 | 590 | void SDBufferWrite(int8_t TargetBuffer[32][128], int Startx, int Starty, int Readx, int Ready){ |
chirashi | 14:0f4d44927b20 | 591 | FILE *fp = fopen(SDFilePath, "r"); |
chirashi | 14:0f4d44927b20 | 592 | if(fp == NULL) { |
chirashi | 14:0f4d44927b20 | 593 | pc.printf("SDFileOpen Error %s\r\n",SDFilePath); |
chirashi | 14:0f4d44927b20 | 594 | //error("Could not open file for write\r\n"); |
chirashi | 14:0f4d44927b20 | 595 | }else{ |
chirashi | 14:0f4d44927b20 | 596 | //fprintf(fp, "Hello fun SD Card World!"); |
chirashi | 14:0f4d44927b20 | 597 | pc.printf("SDFileOpen Success %s\r\n",SDFilePath); |
chirashi | 14:0f4d44927b20 | 598 | |
chirashi | 14:0f4d44927b20 | 599 | //SDDataReadtest |
chirashi | 16:d02248f44c4b | 600 | int8_t Data; |
chirashi | 14:0f4d44927b20 | 601 | for(int y = Starty; y < Starty + Ready; y++){ |
chirashi | 14:0f4d44927b20 | 602 | for(int x = Startx; x < Startx + Readx; x++){ |
chirashi | 14:0f4d44927b20 | 603 | Data = getc(fp); |
chirashi | 14:0f4d44927b20 | 604 | TargetBuffer[y][x] = Data; |
chirashi | 14:0f4d44927b20 | 605 | } |
chirashi | 14:0f4d44927b20 | 606 | } |
chirashi | 14:0f4d44927b20 | 607 | fclose(fp); |
chirashi | 14:0f4d44927b20 | 608 | } |
chirashi | 14:0f4d44927b20 | 609 | } |
chirashi | 13:0c542447e6da | 610 | |
chirashi | 18:b8563e3319fd | 611 | //路線名表示の使用領域チェック |
chirashi | 18:b8563e3319fd | 612 | //路線名表示時に次停車駅を表示するかどうかの判断に使用 |
chirashi | 18:b8563e3319fd | 613 | //路線名が下半分も使用しているなら次停車駅は表示しない |
chirashi | 18:b8563e3319fd | 614 | bool BufferBlankCheck(){ |
chirashi | 18:b8563e3319fd | 615 | bool NotBlankflag = 0; |
chirashi | 18:b8563e3319fd | 616 | for(int y = 16; y < 32; y++){ |
chirashi | 18:b8563e3319fd | 617 | for(int x = 48; x < 128; x++){ |
chirashi | 18:b8563e3319fd | 618 | if(LEDBuffer[y][x] != 0){ |
chirashi | 18:b8563e3319fd | 619 | NotBlankflag = 1; |
chirashi | 18:b8563e3319fd | 620 | } |
chirashi | 18:b8563e3319fd | 621 | if(NotBlankflag == 1){ |
chirashi | 18:b8563e3319fd | 622 | break; |
chirashi | 18:b8563e3319fd | 623 | } |
chirashi | 18:b8563e3319fd | 624 | } |
chirashi | 18:b8563e3319fd | 625 | if(NotBlankflag == 1){ |
chirashi | 18:b8563e3319fd | 626 | break; |
chirashi | 18:b8563e3319fd | 627 | } |
chirashi | 18:b8563e3319fd | 628 | } |
chirashi | 18:b8563e3319fd | 629 | if(NotBlankflag == 0){ |
chirashi | 18:b8563e3319fd | 630 | pc.printf("Blank\r\n"); |
chirashi | 18:b8563e3319fd | 631 | return 0; |
chirashi | 18:b8563e3319fd | 632 | }else{ |
chirashi | 18:b8563e3319fd | 633 | pc.printf("Not Blank\r\n"); |
chirashi | 18:b8563e3319fd | 634 | return 1; |
chirashi | 18:b8563e3319fd | 635 | } |
chirashi | 18:b8563e3319fd | 636 | } |
chirashi | 18:b8563e3319fd | 637 | |
chirashi | 18:b8563e3319fd | 638 | |
chirashi | 18:b8563e3319fd | 639 | |
chirashi | 18:b8563e3319fd | 640 | void SDFileRead(){ |
chirashi | 19:26e0fae24da6 | 641 | |
chirashi | 19:26e0fae24da6 | 642 | //3段階表示 LEDBuffer [種別]路線名(・次駅) |
chirashi | 19:26e0fae24da6 | 643 | // LEDBuffer2 [種別]行先・次駅 |
chirashi | 19:26e0fae24da6 | 644 | // LEDBuffer3 [種別(英)]行先(英)・次駅(英) |
chirashi | 19:26e0fae24da6 | 645 | |
chirashi | 18:b8563e3319fd | 646 | //SDCard |
chirashi | 18:b8563e3319fd | 647 | //種別 |
chirashi | 18:b8563e3319fd | 648 | sprintf(SDFilePath,"/sd/E233/Kind/%d.bin",KindNumber); |
chirashi | 18:b8563e3319fd | 649 | SDBufferWrite(LEDBuffer,0,0,48,32); |
chirashi | 18:b8563e3319fd | 650 | sprintf(SDFilePath,"/sd/E233/Kind/%d.bin",KindNumber); |
chirashi | 18:b8563e3319fd | 651 | SDBufferWrite(LEDBuffer2,0,0,48,32); |
chirashi | 18:b8563e3319fd | 652 | //種別(英語) |
chirashi | 18:b8563e3319fd | 653 | sprintf(SDFilePath,"/sd/E233/KindE/%d.bin",KindNumber); |
chirashi | 19:26e0fae24da6 | 654 | SDBufferWrite(LEDBuffer3,0,0,48,32); |
chirashi | 19:26e0fae24da6 | 655 | |
chirashi | 18:b8563e3319fd | 656 | //路線名 |
chirashi | 18:b8563e3319fd | 657 | sprintf(SDFilePath,"/sd/E233/Line/%d.bin",LineNumber); |
chirashi | 18:b8563e3319fd | 658 | SDBufferWrite(LEDBuffer,48,0,80,32); |
chirashi | 18:b8563e3319fd | 659 | //行先 |
chirashi | 18:b8563e3319fd | 660 | sprintf(SDFilePath,"/sd/E233/For/%d.bin",ForNumber); |
chirashi | 18:b8563e3319fd | 661 | SDBufferWrite(LEDBuffer2,48,0,80,16); |
chirashi | 18:b8563e3319fd | 662 | //行先(英語) |
chirashi | 18:b8563e3319fd | 663 | sprintf(SDFilePath,"/sd/E233/ForE/%d.bin",ForNumber); |
chirashi | 18:b8563e3319fd | 664 | SDBufferWrite(LEDBuffer3,48,0,80,16); |
chirashi | 18:b8563e3319fd | 665 | |
chirashi | 18:b8563e3319fd | 666 | //次停車駅(路線名表示) |
chirashi | 18:b8563e3319fd | 667 | //路線名表示の次停車駅は路線名表示が上半分に収まるときのみ表示 |
chirashi | 18:b8563e3319fd | 668 | if(BufferBlankCheck() == 0){ |
chirashi | 18:b8563e3319fd | 669 | sprintf(SDFilePath,"/sd/E233/NextStation/%d.bin",NextStaNumber); |
chirashi | 18:b8563e3319fd | 670 | SDBufferWrite(LEDBuffer,48,16,80,16); |
chirashi | 18:b8563e3319fd | 671 | } |
chirashi | 18:b8563e3319fd | 672 | //次停車駅 |
chirashi | 18:b8563e3319fd | 673 | sprintf(SDFilePath,"/sd/E233/NextStation/%d.bin",NextStaNumber); |
chirashi | 19:26e0fae24da6 | 674 | SDBufferWrite(LEDBuffer2,48,16,80,16); |
chirashi | 18:b8563e3319fd | 675 | //次停車駅(英語) |
chirashi | 18:b8563e3319fd | 676 | sprintf(SDFilePath,"/sd/E233/NextStationE/%d.bin",NextStaNumber); |
chirashi | 18:b8563e3319fd | 677 | SDBufferWrite(LEDBuffer3,48,16,80,16); |
chirashi | 19:26e0fae24da6 | 678 | |
chirashi | 19:26e0fae24da6 | 679 | //路線コードが0なら2段階表示に変更 |
chirashi | 19:26e0fae24da6 | 680 | if(LineNumber == 0){ |
chirashi | 19:26e0fae24da6 | 681 | DisplayMode = 4; |
chirashi | 19:26e0fae24da6 | 682 | }else{ |
chirashi | 19:26e0fae24da6 | 683 | DisplayMode = 1; |
chirashi | 19:26e0fae24da6 | 684 | } |
chirashi | 19:26e0fae24da6 | 685 | |
chirashi | 19:26e0fae24da6 | 686 | //次駅コードが0なら次駅なしの2段階表示に変更 |
chirashi | 19:26e0fae24da6 | 687 | // 2段階表示 LEDBuffer [種別]路線名 |
chirashi | 19:26e0fae24da6 | 688 | // LEDBuffer2 [種別]行先(次駅表示なし) |
chirashi | 19:26e0fae24da6 | 689 | //路線名がない場合(E233-0など)は固定表示 |
chirashi | 19:26e0fae24da6 | 690 | |
chirashi | 19:26e0fae24da6 | 691 | if(NextStaNumber == 0){ |
chirashi | 19:26e0fae24da6 | 692 | //種別 |
chirashi | 19:26e0fae24da6 | 693 | sprintf(SDFilePath,"/sd/E233/Kind/%d.bin",KindNumber); |
chirashi | 19:26e0fae24da6 | 694 | SDBufferWrite(LEDBuffer,0,0,48,32); |
chirashi | 19:26e0fae24da6 | 695 | sprintf(SDFilePath,"/sd/E233/Kind/%d.bin",KindNumber); |
chirashi | 19:26e0fae24da6 | 696 | SDBufferWrite(LEDBuffer2,0,0,48,32); |
chirashi | 19:26e0fae24da6 | 697 | |
chirashi | 19:26e0fae24da6 | 698 | //路線名 |
chirashi | 19:26e0fae24da6 | 699 | sprintf(SDFilePath,"/sd/E233/Line2/%d.bin",LineNumber); |
chirashi | 19:26e0fae24da6 | 700 | SDBufferWrite(LEDBuffer,48,0,80,32); |
chirashi | 19:26e0fae24da6 | 701 | //行先 |
chirashi | 19:26e0fae24da6 | 702 | sprintf(SDFilePath,"/sd/E233/For2/%d.bin",ForNumber); |
chirashi | 19:26e0fae24da6 | 703 | SDBufferWrite(LEDBuffer2,48,0,80,32); |
chirashi | 19:26e0fae24da6 | 704 | |
chirashi | 19:26e0fae24da6 | 705 | //路線コードが0なら行先で固定表示 |
chirashi | 19:26e0fae24da6 | 706 | if(LineNumber == 0){ |
chirashi | 19:26e0fae24da6 | 707 | DisplayMode = 3; |
chirashi | 19:26e0fae24da6 | 708 | }else{ |
chirashi | 19:26e0fae24da6 | 709 | DisplayMode = 2; |
chirashi | 19:26e0fae24da6 | 710 | } |
chirashi | 19:26e0fae24da6 | 711 | } |
chirashi | 19:26e0fae24da6 | 712 | |
chirashi | 19:26e0fae24da6 | 713 | //WriteMode = 3 固定表示 LEDBuffer2 行先(次駅表示なし 32x128) |
chirashi | 19:26e0fae24da6 | 714 | //else if(WriteMode == 3){ |
chirashi | 19:26e0fae24da6 | 715 | if(WriteMode == 3){ |
chirashi | 19:26e0fae24da6 | 716 | //データ作ってないからとりあえず80x32の行先データを表示 |
chirashi | 19:26e0fae24da6 | 717 | |
chirashi | 19:26e0fae24da6 | 718 | sprintf(SDFilePath,"/sd/E233/For2/%d.bin",ForNumber); |
chirashi | 19:26e0fae24da6 | 719 | SDBufferWrite(LEDBuffer2,48,0,80,32); |
chirashi | 19:26e0fae24da6 | 720 | |
chirashi | 19:26e0fae24da6 | 721 | DisplayMode = 3; |
chirashi | 19:26e0fae24da6 | 722 | |
chirashi | 19:26e0fae24da6 | 723 | } |
chirashi | 18:b8563e3319fd | 724 | |
chirashi | 20:4f9719182866 | 725 | //Debug |
chirashi | 20:4f9719182866 | 726 | if(Debug == 1){ |
chirashi | 20:4f9719182866 | 727 | //DataSerialOut |
chirashi | 20:4f9719182866 | 728 | for(int y = 0; y < 32; y++){ |
chirashi | 20:4f9719182866 | 729 | for(int x = 0; x <128; x++){ |
chirashi | 20:4f9719182866 | 730 | if(LEDBuffer[y][x]== 0){ |
chirashi | 20:4f9719182866 | 731 | //pc.printf("0,"); |
chirashi | 20:4f9719182866 | 732 | pc.printf(" "); |
chirashi | 20:4f9719182866 | 733 | }else{ |
chirashi | 20:4f9719182866 | 734 | //pc.printf("#"); |
chirashi | 20:4f9719182866 | 735 | pc.printf("%.02d",LEDBuffer[y][x]); |
chirashi | 20:4f9719182866 | 736 | } |
chirashi | 20:4f9719182866 | 737 | } |
chirashi | 20:4f9719182866 | 738 | pc.printf("\r\n"); |
chirashi | 20:4f9719182866 | 739 | } |
chirashi | 20:4f9719182866 | 740 | } |
chirashi | 18:b8563e3319fd | 741 | |
chirashi | 18:b8563e3319fd | 742 | } |
chirashi | 18:b8563e3319fd | 743 | |
chirashi | 18:b8563e3319fd | 744 | |
chirashi | 18:b8563e3319fd | 745 | |
chirashi | 17:95bcbc53d96b | 746 | void pc_rx(){ |
chirashi | 17:95bcbc53d96b | 747 | //pc.putc(pc.getc()); |
chirashi | 17:95bcbc53d96b | 748 | |
chirashi | 17:95bcbc53d96b | 749 | |
chirashi | 17:95bcbc53d96b | 750 | if (pc.readable() == 1) { // 受信したデータが存在する |
chirashi | 17:95bcbc53d96b | 751 | SerialBuffer[count] = pc.getc(); // 受信データを読み込む |
chirashi | 17:95bcbc53d96b | 752 | if (count > 30 || SerialBuffer[count] == '$') { // 文字数が既定の個数を超えた場合、又は終了文字を受信した場合 |
chirashi | 17:95bcbc53d96b | 753 | SerialBuffer[count] = '\0'; // 末尾に終端文字を入れる |
chirashi | 17:95bcbc53d96b | 754 | count = 0; |
chirashi | 17:95bcbc53d96b | 755 | |
chirashi | 17:95bcbc53d96b | 756 | if(SerialBuffer[0] == 'L'){ |
chirashi | 17:95bcbc53d96b | 757 | unsigned char Sertemp1 = SerialBuffer[1]; |
chirashi | 17:95bcbc53d96b | 758 | unsigned char Sertemp2 = SerialBuffer[2]; |
chirashi | 17:95bcbc53d96b | 759 | unsigned char Sertemp3 = SerialBuffer[3]; |
chirashi | 17:95bcbc53d96b | 760 | int n1 = 0 ; |
chirashi | 17:95bcbc53d96b | 761 | int n2 = 0 ; |
chirashi | 17:95bcbc53d96b | 762 | int n3 = 0 ; |
chirashi | 17:95bcbc53d96b | 763 | int n = 0; |
chirashi | 17:95bcbc53d96b | 764 | |
chirashi | 17:95bcbc53d96b | 765 | |
chirashi | 17:95bcbc53d96b | 766 | if ( Sertemp1 < '0' || Sertemp1 > '9' ) { |
chirashi | 17:95bcbc53d96b | 767 | // error |
chirashi | 17:95bcbc53d96b | 768 | } else { |
chirashi | 17:95bcbc53d96b | 769 | n1 = (int)(Sertemp1 - '0') ; |
chirashi | 18:b8563e3319fd | 770 | //pc.printf("%d,",n1); |
chirashi | 18:b8563e3319fd | 771 | } |
chirashi | 18:b8563e3319fd | 772 | if ( Sertemp2 < '0' || Sertemp2 > '9' ) { |
chirashi | 18:b8563e3319fd | 773 | // error |
chirashi | 18:b8563e3319fd | 774 | } else { |
chirashi | 18:b8563e3319fd | 775 | n2 = (int)(Sertemp2 - '0') ; |
chirashi | 18:b8563e3319fd | 776 | //pc.printf("%d,",n2); |
chirashi | 18:b8563e3319fd | 777 | } |
chirashi | 18:b8563e3319fd | 778 | if ( Sertemp3 < '0' || Sertemp3 > '9' ) { |
chirashi | 18:b8563e3319fd | 779 | // error |
chirashi | 18:b8563e3319fd | 780 | } else { |
chirashi | 18:b8563e3319fd | 781 | n3 = (int)(Sertemp3 - '0') ; |
chirashi | 18:b8563e3319fd | 782 | //pc.printf("%d\r\n",n3); |
chirashi | 18:b8563e3319fd | 783 | } |
chirashi | 18:b8563e3319fd | 784 | n = (n1 * 100) + (n2 * 10) + n3; |
chirashi | 18:b8563e3319fd | 785 | LineNumber = n; |
chirashi | 19:26e0fae24da6 | 786 | pc.printf("Line:%d\r\n",n); |
chirashi | 18:b8563e3319fd | 787 | } |
chirashi | 18:b8563e3319fd | 788 | |
chirashi | 18:b8563e3319fd | 789 | if(SerialBuffer[0] == 'K'){ |
chirashi | 18:b8563e3319fd | 790 | unsigned char Sertemp1 = SerialBuffer[1]; |
chirashi | 18:b8563e3319fd | 791 | unsigned char Sertemp2 = SerialBuffer[2]; |
chirashi | 18:b8563e3319fd | 792 | unsigned char Sertemp3 = SerialBuffer[3]; |
chirashi | 18:b8563e3319fd | 793 | int n1 = 0 ; |
chirashi | 18:b8563e3319fd | 794 | int n2 = 0 ; |
chirashi | 18:b8563e3319fd | 795 | int n3 = 0 ; |
chirashi | 18:b8563e3319fd | 796 | int n = 0; |
chirashi | 18:b8563e3319fd | 797 | |
chirashi | 18:b8563e3319fd | 798 | |
chirashi | 18:b8563e3319fd | 799 | if ( Sertemp1 < '0' || Sertemp1 > '9' ) { |
chirashi | 18:b8563e3319fd | 800 | // error |
chirashi | 18:b8563e3319fd | 801 | } else { |
chirashi | 18:b8563e3319fd | 802 | n1 = (int)(Sertemp1 - '0') ; |
chirashi | 18:b8563e3319fd | 803 | //pc.printf("%d,",n1); |
chirashi | 17:95bcbc53d96b | 804 | } |
chirashi | 17:95bcbc53d96b | 805 | if ( Sertemp2 < '0' || Sertemp2 > '9' ) { |
chirashi | 17:95bcbc53d96b | 806 | // error |
chirashi | 17:95bcbc53d96b | 807 | } else { |
chirashi | 17:95bcbc53d96b | 808 | n2 = (int)(Sertemp2 - '0') ; |
chirashi | 18:b8563e3319fd | 809 | //pc.printf("%d,",n2); |
chirashi | 17:95bcbc53d96b | 810 | } |
chirashi | 17:95bcbc53d96b | 811 | if ( Sertemp3 < '0' || Sertemp3 > '9' ) { |
chirashi | 17:95bcbc53d96b | 812 | // error |
chirashi | 17:95bcbc53d96b | 813 | } else { |
chirashi | 17:95bcbc53d96b | 814 | n3 = (int)(Sertemp3 - '0') ; |
chirashi | 18:b8563e3319fd | 815 | //pc.printf("%d,",n3); |
chirashi | 17:95bcbc53d96b | 816 | } |
chirashi | 17:95bcbc53d96b | 817 | n = (n1 * 100) + (n2 * 10) + n3; |
chirashi | 18:b8563e3319fd | 818 | KindNumber = n; |
chirashi | 18:b8563e3319fd | 819 | pc.printf("Kind:%d\r\n",n); |
chirashi | 18:b8563e3319fd | 820 | } |
chirashi | 18:b8563e3319fd | 821 | |
chirashi | 18:b8563e3319fd | 822 | if(SerialBuffer[0] == 'F'){ |
chirashi | 18:b8563e3319fd | 823 | unsigned char Sertemp1 = SerialBuffer[1]; |
chirashi | 18:b8563e3319fd | 824 | unsigned char Sertemp2 = SerialBuffer[2]; |
chirashi | 18:b8563e3319fd | 825 | unsigned char Sertemp3 = SerialBuffer[3]; |
chirashi | 18:b8563e3319fd | 826 | int n1 = 0 ; |
chirashi | 18:b8563e3319fd | 827 | int n2 = 0 ; |
chirashi | 18:b8563e3319fd | 828 | int n3 = 0 ; |
chirashi | 18:b8563e3319fd | 829 | int n = 0; |
chirashi | 17:95bcbc53d96b | 830 | |
chirashi | 18:b8563e3319fd | 831 | |
chirashi | 18:b8563e3319fd | 832 | if ( Sertemp1 < '0' || Sertemp1 > '9' ) { |
chirashi | 18:b8563e3319fd | 833 | // error |
chirashi | 18:b8563e3319fd | 834 | } else { |
chirashi | 18:b8563e3319fd | 835 | n1 = (int)(Sertemp1 - '0') ; |
chirashi | 18:b8563e3319fd | 836 | //pc.printf("%d,",n1); |
chirashi | 18:b8563e3319fd | 837 | } |
chirashi | 18:b8563e3319fd | 838 | if ( Sertemp2 < '0' || Sertemp2 > '9' ) { |
chirashi | 18:b8563e3319fd | 839 | // error |
chirashi | 18:b8563e3319fd | 840 | } else { |
chirashi | 18:b8563e3319fd | 841 | n2 = (int)(Sertemp2 - '0') ; |
chirashi | 18:b8563e3319fd | 842 | //pc.printf("%d,",n2); |
chirashi | 18:b8563e3319fd | 843 | } |
chirashi | 18:b8563e3319fd | 844 | if ( Sertemp3 < '0' || Sertemp3 > '9' ) { |
chirashi | 18:b8563e3319fd | 845 | // error |
chirashi | 18:b8563e3319fd | 846 | } else { |
chirashi | 18:b8563e3319fd | 847 | n3 = (int)(Sertemp3 - '0') ; |
chirashi | 18:b8563e3319fd | 848 | //pc.printf("%d,",n3); |
chirashi | 18:b8563e3319fd | 849 | } |
chirashi | 18:b8563e3319fd | 850 | n = (n1 * 100) + (n2 * 10) + n3; |
chirashi | 18:b8563e3319fd | 851 | ForNumber = n; |
chirashi | 18:b8563e3319fd | 852 | pc.printf("For:%d\r\n",n); |
chirashi | 18:b8563e3319fd | 853 | } |
chirashi | 18:b8563e3319fd | 854 | |
chirashi | 19:26e0fae24da6 | 855 | if(SerialBuffer[0] == 'N'){ |
chirashi | 19:26e0fae24da6 | 856 | unsigned char Sertemp1 = SerialBuffer[1]; |
chirashi | 19:26e0fae24da6 | 857 | unsigned char Sertemp2 = SerialBuffer[2]; |
chirashi | 19:26e0fae24da6 | 858 | unsigned char Sertemp3 = SerialBuffer[3]; |
chirashi | 19:26e0fae24da6 | 859 | int n1 = 0 ; |
chirashi | 19:26e0fae24da6 | 860 | int n2 = 0 ; |
chirashi | 19:26e0fae24da6 | 861 | int n3 = 0 ; |
chirashi | 19:26e0fae24da6 | 862 | int n = 0; |
chirashi | 19:26e0fae24da6 | 863 | |
chirashi | 19:26e0fae24da6 | 864 | |
chirashi | 19:26e0fae24da6 | 865 | if ( Sertemp1 < '0' || Sertemp1 > '9' ) { |
chirashi | 19:26e0fae24da6 | 866 | // error |
chirashi | 19:26e0fae24da6 | 867 | } else { |
chirashi | 19:26e0fae24da6 | 868 | n1 = (int)(Sertemp1 - '0') ; |
chirashi | 19:26e0fae24da6 | 869 | //pc.printf("%d,",n1); |
chirashi | 19:26e0fae24da6 | 870 | } |
chirashi | 19:26e0fae24da6 | 871 | if ( Sertemp2 < '0' || Sertemp2 > '9' ) { |
chirashi | 19:26e0fae24da6 | 872 | // error |
chirashi | 19:26e0fae24da6 | 873 | } else { |
chirashi | 19:26e0fae24da6 | 874 | n2 = (int)(Sertemp2 - '0') ; |
chirashi | 19:26e0fae24da6 | 875 | //pc.printf("%d,",n2); |
chirashi | 19:26e0fae24da6 | 876 | } |
chirashi | 19:26e0fae24da6 | 877 | if ( Sertemp3 < '0' || Sertemp3 > '9' ) { |
chirashi | 19:26e0fae24da6 | 878 | // error |
chirashi | 19:26e0fae24da6 | 879 | } else { |
chirashi | 19:26e0fae24da6 | 880 | n3 = (int)(Sertemp3 - '0') ; |
chirashi | 19:26e0fae24da6 | 881 | //pc.printf("%d,",n3); |
chirashi | 19:26e0fae24da6 | 882 | } |
chirashi | 19:26e0fae24da6 | 883 | n = (n1 * 100) + (n2 * 10) + n3; |
chirashi | 19:26e0fae24da6 | 884 | NextStaNumber = n; |
chirashi | 19:26e0fae24da6 | 885 | pc.printf("NextStation:%d\r\n",n); |
chirashi | 19:26e0fae24da6 | 886 | } |
chirashi | 18:b8563e3319fd | 887 | |
chirashi | 18:b8563e3319fd | 888 | if(SerialBuffer[0] == 'S' && SerialBuffer[1] == 'e' && SerialBuffer[2] == 't'){ |
chirashi | 18:b8563e3319fd | 889 | pc.printf("Set\r\n"); |
chirashi | 18:b8563e3319fd | 890 | SDFileRead(); |
chirashi | 17:95bcbc53d96b | 891 | } |
chirashi | 17:95bcbc53d96b | 892 | |
chirashi | 17:95bcbc53d96b | 893 | }else{ |
chirashi | 17:95bcbc53d96b | 894 | count++; |
chirashi | 17:95bcbc53d96b | 895 | } |
chirashi | 17:95bcbc53d96b | 896 | } |
chirashi | 17:95bcbc53d96b | 897 | } |
chirashi | 17:95bcbc53d96b | 898 | |
chirashi | 17:95bcbc53d96b | 899 | int main(){ |
chirashi | 13:0c542447e6da | 900 | Init(); // Set things up |
chirashi | 13:0c542447e6da | 901 | //Serial |
chirashi | 13:0c542447e6da | 902 | pc.printf("Power ON\r\n"); |
chirashi | 13:0c542447e6da | 903 | |
chirashi | 17:95bcbc53d96b | 904 | |
chirashi | 13:0c542447e6da | 905 | //SumSW |
chirashi | 17:95bcbc53d96b | 906 | int testData[16] = {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0}; |
chirashi | 13:0c542447e6da | 907 | SI = LOW; |
chirashi | 17:95bcbc53d96b | 908 | for(int a = 0; a < 16; a++){ |
chirashi | 17:95bcbc53d96b | 909 | if(testData[a] == 1){ |
chirashi | 17:95bcbc53d96b | 910 | SI = HIGH; |
chirashi | 17:95bcbc53d96b | 911 | pc.printf("1,"); |
chirashi | 17:95bcbc53d96b | 912 | }else{ |
chirashi | 17:95bcbc53d96b | 913 | SI = LOW; |
chirashi | 17:95bcbc53d96b | 914 | pc.printf("0,"); |
chirashi | 17:95bcbc53d96b | 915 | } |
chirashi | 13:0c542447e6da | 916 | SCK = HIGH; |
chirashi | 17:95bcbc53d96b | 917 | wait_us(15); |
chirashi | 17:95bcbc53d96b | 918 | SCK = LOW; |
chirashi | 17:95bcbc53d96b | 919 | wait_us(15); |
chirashi | 13:0c542447e6da | 920 | } |
chirashi | 13:0c542447e6da | 921 | |
chirashi | 13:0c542447e6da | 922 | RCK = HIGH; |
chirashi | 17:95bcbc53d96b | 923 | wait_us(15); |
chirashi | 13:0c542447e6da | 924 | RCK = LOW; |
chirashi | 17:95bcbc53d96b | 925 | pc.printf("\r\n"); |
chirashi | 8:9d22c9910917 | 926 | |
chirashi | 14:0f4d44927b20 | 927 | int SumSWNum = 0; |
chirashi | 17:95bcbc53d96b | 928 | if(SumSW1 == 1 ){ |
chirashi | 14:0f4d44927b20 | 929 | SumSWNum = SumSWNum + 1; |
chirashi | 14:0f4d44927b20 | 930 | } |
chirashi | 17:95bcbc53d96b | 931 | if(SumSW2 == 1){ |
chirashi | 14:0f4d44927b20 | 932 | SumSWNum = SumSWNum + 2; |
chirashi | 14:0f4d44927b20 | 933 | } |
chirashi | 17:95bcbc53d96b | 934 | if(SumSW4 == 1){ |
chirashi | 14:0f4d44927b20 | 935 | SumSWNum = SumSWNum + 4; |
chirashi | 14:0f4d44927b20 | 936 | } |
chirashi | 17:95bcbc53d96b | 937 | if(SumSW8 == 1){ |
chirashi | 14:0f4d44927b20 | 938 | SumSWNum = SumSWNum + 8; |
chirashi | 14:0f4d44927b20 | 939 | } |
chirashi | 14:0f4d44927b20 | 940 | pc.printf("SumSW:%d\r\n",SumSWNum); |
chirashi | 8:9d22c9910917 | 941 | |
chirashi | 18:b8563e3319fd | 942 | |
chirashi | 17:95bcbc53d96b | 943 | |
chirashi | 18:b8563e3319fd | 944 | SDFileRead(); |
chirashi | 8:9d22c9910917 | 945 | |
chirashi | 13:0c542447e6da | 946 | //Debug |
chirashi | 14:0f4d44927b20 | 947 | if(Debug == 1){ |
chirashi | 14:0f4d44927b20 | 948 | //DataSerialOut |
chirashi | 14:0f4d44927b20 | 949 | for(int y = 0; y < 32; y++){ |
chirashi | 14:0f4d44927b20 | 950 | for(int x = 0; x <128; x++){ |
chirashi | 14:0f4d44927b20 | 951 | if(LEDBuffer[y][x]== 0){ |
chirashi | 14:0f4d44927b20 | 952 | //pc.printf("0,"); |
chirashi | 14:0f4d44927b20 | 953 | pc.printf(" "); |
chirashi | 14:0f4d44927b20 | 954 | }else{ |
chirashi | 14:0f4d44927b20 | 955 | //pc.printf("#"); |
chirashi | 14:0f4d44927b20 | 956 | pc.printf("%.02d",LEDBuffer[y][x]); |
chirashi | 14:0f4d44927b20 | 957 | } |
chirashi | 13:0c542447e6da | 958 | } |
chirashi | 14:0f4d44927b20 | 959 | pc.printf("\r\n"); |
chirashi | 13:0c542447e6da | 960 | } |
chirashi | 13:0c542447e6da | 961 | } |
chirashi | 17:95bcbc53d96b | 962 | //Serial |
chirashi | 17:95bcbc53d96b | 963 | pc.attach(pc_rx, Serial::RxIrq); |
chirashi | 17:95bcbc53d96b | 964 | |
chirashi | 13:0c542447e6da | 965 | //DisplayTimer |
chirashi | 12:680db9f1f4eb | 966 | ChangeTimer.attach(&TimerTick,3); |
chirashi | 8:9d22c9910917 | 967 | |
chirashi | 17:95bcbc53d96b | 968 | |
chirashi | 17:95bcbc53d96b | 969 | |
chirashi | 17:95bcbc53d96b | 970 | |
chirashi | 13:0c542447e6da | 971 | while(1) { |
RRacer | 0:1f58ecec51d6 | 972 | CT++; |
chirashi | 8:9d22c9910917 | 973 | if (ChangeCount == 0){ |
chirashi | 8:9d22c9910917 | 974 | Paint(LEDBuffer); |
chirashi | 8:9d22c9910917 | 975 | }else if(ChangeCount == 1){ |
chirashi | 8:9d22c9910917 | 976 | Paint(LEDBuffer2); |
chirashi | 8:9d22c9910917 | 977 | }else if(ChangeCount == 2){ |
chirashi | 8:9d22c9910917 | 978 | Paint(LEDBuffer3); |
chirashi | 8:9d22c9910917 | 979 | } |
chirashi | 4:245f17936b1a | 980 | |
RRacer | 0:1f58ecec51d6 | 981 | if(CT>4160) { |
chirashi | 4:245f17936b1a | 982 | //MkPattern(); // Restore original priceless artwork |
RRacer | 0:1f58ecec51d6 | 983 | CT=0; // Start all over. |
RRacer | 0:1f58ecec51d6 | 984 | } |
chirashi | 3:6dbbc0130e96 | 985 | |
chirashi | 4:245f17936b1a | 986 | //PaintOFF(); |
chirashi | 6:e6cb4a476422 | 987 | //wait_us(10); |
RRacer | 0:1f58ecec51d6 | 988 | } |
chirashi | 3:6dbbc0130e96 | 989 | |
RRacer | 0:1f58ecec51d6 | 990 | } |