![](/media/cache/group/mouse.jpg.50x50_q85.jpg)
Full layout 'HUB' with functioning navigation between all screens and active temp/state display
Dependencies: ID12RFID SPI_TFT_ILI9341 TFT_fonts mbed
Fork of Welcome_Screen_TFT by
IDs.h@8:95cd847648cd, 2016-06-16 (annotated)
- Committer:
- bendavis96
- Date:
- Thu Jun 16 20:56:50 2016 +0000
- Revision:
- 8:95cd847648cd
- Parent:
- 7:ceeced183454
added active temp and fan/light display, also functioning sub screens.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bendavis96 | 7:ceeced183454 | 1 | void ben() |
bendavis96 | 7:ceeced183454 | 2 | { |
bendavis96 | 7:ceeced183454 | 3 | |
bendavis96 | 7:ceeced183454 | 4 | rled = 0; |
bendavis96 | 7:ceeced183454 | 5 | bled = 1; |
bendavis96 | 7:ceeced183454 | 6 | gled = 1; |
bendavis96 | 7:ceeced183454 | 7 | |
bendavis96 | 7:ceeced183454 | 8 | TFT.printf("B"); |
bendavis96 | 7:ceeced183454 | 9 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 10 | TFT.printf("e"); |
bendavis96 | 7:ceeced183454 | 11 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 12 | TFT.printf("n"); |
bendavis96 | 7:ceeced183454 | 13 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 14 | home(); |
bendavis96 | 7:ceeced183454 | 15 | break; |
bendavis96 | 7:ceeced183454 | 16 | } |
bendavis96 | 7:ceeced183454 | 17 | |
bendavis96 | 7:ceeced183454 | 18 | void joe() |
bendavis96 | 7:ceeced183454 | 19 | { |
bendavis96 | 7:ceeced183454 | 20 | rled = 1; |
bendavis96 | 7:ceeced183454 | 21 | bled = 0; |
bendavis96 | 7:ceeced183454 | 22 | gled = 1; |
bendavis96 | 7:ceeced183454 | 23 | |
bendavis96 | 7:ceeced183454 | 24 | TFT.printf("J"); |
bendavis96 | 7:ceeced183454 | 25 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 26 | TFT.printf("o"); |
bendavis96 | 7:ceeced183454 | 27 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 28 | TFT.printf("e"); |
bendavis96 | 7:ceeced183454 | 29 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 30 | home(); |
bendavis96 | 7:ceeced183454 | 31 | break; |
bendavis96 | 7:ceeced183454 | 32 | } |
bendavis96 | 7:ceeced183454 | 33 | |
bendavis96 | 7:ceeced183454 | 34 | void arthur() |
bendavis96 | 7:ceeced183454 | 35 | { |
bendavis96 | 7:ceeced183454 | 36 | rled = 1; |
bendavis96 | 7:ceeced183454 | 37 | bled = 0; |
bendavis96 | 7:ceeced183454 | 38 | gled = 1; |
bendavis96 | 7:ceeced183454 | 39 | |
bendavis96 | 7:ceeced183454 | 40 | TFT.printf("A"); |
bendavis96 | 7:ceeced183454 | 41 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 42 | TFT.printf("r"); |
bendavis96 | 7:ceeced183454 | 43 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 44 | TFT.printf("t"); |
bendavis96 | 7:ceeced183454 | 45 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 46 | TFT.printf("h"); |
bendavis96 | 7:ceeced183454 | 47 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 48 | TFT.printf("u"); |
bendavis96 | 7:ceeced183454 | 49 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 50 | TFT.printf("r"); |
bendavis96 | 7:ceeced183454 | 51 | wait(0.05); |
bendavis96 | 7:ceeced183454 | 52 | home(); |
bendavis96 | 7:ceeced183454 | 53 | break |
bendavis96 | 7:ceeced183454 | 54 | } |
bendavis96 | 7:ceeced183454 | 55 | |
bendavis96 | 7:ceeced183454 | 56 | void intruder() |
bendavis96 | 7:ceeced183454 | 57 | { |
bendavis96 | 7:ceeced183454 | 58 | rled = 0; |
bendavis96 | 7:ceeced183454 | 59 | bled = 0; |
bendavis96 | 7:ceeced183454 | 60 | gled = 0; |
bendavis96 | 7:ceeced183454 | 61 | TFT.cls(); // clear the screen |
bendavis96 | 7:ceeced183454 | 62 | TFT.set_font((unsigned char*) Arial24x23); |
bendavis96 | 7:ceeced183454 | 63 | TFT.set_orientation(1); |
bendavis96 | 7:ceeced183454 | 64 | TFT.locate(50,100); |
bendavis96 | 7:ceeced183454 | 65 | TFT.printf("I"); |
bendavis96 | 7:ceeced183454 | 66 | TFT.printf("N"); |
bendavis96 | 7:ceeced183454 | 67 | TFT.printf("T"); |
bendavis96 | 7:ceeced183454 | 68 | TFT.printf("R"); |
bendavis96 | 7:ceeced183454 | 69 | TFT.printf("U"); |
bendavis96 | 7:ceeced183454 | 70 | TFT.printf("D"); |
bendavis96 | 7:ceeced183454 | 71 | TFT.printf("E"); |
bendavis96 | 7:ceeced183454 | 72 | TFT.printf("R"); |
bendavis96 | 7:ceeced183454 | 73 | break; |
bendavis96 | 7:ceeced183454 | 74 | } |
bendavis96 | 7:ceeced183454 | 75 | |
bendavis96 | 7:ceeced183454 | 76 | |
bendavis96 | 7:ceeced183454 | 77 | |
bendavis96 | 7:ceeced183454 | 78 | |
bendavis96 | 7:ceeced183454 | 79 |