private
/
Test2
..
POH.h@0:9e18257aba4f, 2017-01-10 (annotated)
- Committer:
- Hamac
- Date:
- Tue Jan 10 14:03:24 2017 +0000
- Revision:
- 0:9e18257aba4f
d
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Hamac | 0:9e18257aba4f | 1 | #include "mbed.h" |
Hamac | 0:9e18257aba4f | 2 | #include "C12832.h" |
Hamac | 0:9e18257aba4f | 3 | |
Hamac | 0:9e18257aba4f | 4 | C12832 lcd (PA_7, PA_5, PA_6, PA_8, PB_6); |
Hamac | 0:9e18257aba4f | 5 | |
Hamac | 0:9e18257aba4f | 6 | int POH () |
Hamac | 0:9e18257aba4f | 7 | { |
Hamac | 0:9e18257aba4f | 8 | lcd.cls(); |
Hamac | 0:9e18257aba4f | 9 | lcd.circle(64,16,12,1); |
Hamac | 0:9e18257aba4f | 10 | //lcd.circle(64,16,15,1); |
Hamac | 0:9e18257aba4f | 11 | |
Hamac | 0:9e18257aba4f | 12 | lcd.line( 61, 1, 67, 1, 1); //barre haut rond |
Hamac | 0:9e18257aba4f | 13 | lcd.line( 61, 31, 67, 31, 1); //barre bas rond |
Hamac | 0:9e18257aba4f | 14 | lcd.line( 48, 23, 51, 27, 1); |
Hamac | 0:9e18257aba4f | 15 | lcd.line( 76, 4, 79, 8, 1); |
Hamac | 0:9e18257aba4f | 16 | lcd.line( 52, 4, 49, 8, 1); |
Hamac | 0:9e18257aba4f | 17 | lcd.line( 76, 27, 79, 23, 1); |
Hamac | 0:9e18257aba4f | 18 | |
Hamac | 0:9e18257aba4f | 19 | lcd.line( 64, 1, 64, 4, 1); //barre liaison rond |
Hamac | 0:9e18257aba4f | 20 | lcd.line( 64, 28, 64, 31, 1); //barre liaison rond |
Hamac | 0:9e18257aba4f | 21 | lcd.line( 74, 22, 77, 25, 1); |
Hamac | 0:9e18257aba4f | 22 | lcd.line( 77, 6, 74, 8, 1); |
Hamac | 0:9e18257aba4f | 23 | lcd.line( 50, 25, 53, 23, 1); |
Hamac | 0:9e18257aba4f | 24 | lcd.line( 53, 8, 51, 5, 1); |
Hamac | 0:9e18257aba4f | 25 | |
Hamac | 0:9e18257aba4f | 26 | |
Hamac | 0:9e18257aba4f | 27 | lcd.line( 53, 18, 75, 18, 1); //barre bouche |
Hamac | 0:9e18257aba4f | 28 | |
Hamac | 0:9e18257aba4f | 29 | lcd.line( 57, 18, 57, 25, 1); //barre dent |
Hamac | 0:9e18257aba4f | 30 | lcd.line( 61, 18, 61, 28, 1); //barre dent |
Hamac | 0:9e18257aba4f | 31 | lcd.line( 67, 18, 67, 28, 1); //barre dent |
Hamac | 0:9e18257aba4f | 32 | lcd.line( 71, 18, 71, 25, 1); //barre dent |
Hamac | 0:9e18257aba4f | 33 | |
Hamac | 0:9e18257aba4f | 34 | |
Hamac | 0:9e18257aba4f | 35 | lcd.circle(58,13,3,1); //Yeux |
Hamac | 0:9e18257aba4f | 36 | lcd.circle(70,13,3,1); |
Hamac | 0:9e18257aba4f | 37 | lcd.circle(58,13,2,1); |
Hamac | 0:9e18257aba4f | 38 | lcd.circle(70,13,2,1); |
Hamac | 0:9e18257aba4f | 39 | lcd.circle(58,13,1,1); |
Hamac | 0:9e18257aba4f | 40 | lcd.circle(70,13,1,1); |
Hamac | 0:9e18257aba4f | 41 | |
Hamac | 0:9e18257aba4f | 42 | lcd.line(63,15,65,15,1); //nez |
Hamac | 0:9e18257aba4f | 43 | lcd.line(64,14,64,16,1); |
Hamac | 0:9e18257aba4f | 44 | |
Hamac | 0:9e18257aba4f | 45 | |
Hamac | 0:9e18257aba4f | 46 | lcd.line(110,3,110,29,1); //H |
Hamac | 0:9e18257aba4f | 47 | lcd.line(90,3,90,29,1); |
Hamac | 0:9e18257aba4f | 48 | lcd.line(93,20,107,20,1); |
Hamac | 0:9e18257aba4f | 49 | |
Hamac | 0:9e18257aba4f | 50 | lcd.line(107,3,107,17,1); //H |
Hamac | 0:9e18257aba4f | 51 | lcd.line(93,3,93,17,1); |
Hamac | 0:9e18257aba4f | 52 | lcd.line(107,20,107,29,1); //H |
Hamac | 0:9e18257aba4f | 53 | lcd.line(93,20,93,29,1); |
Hamac | 0:9e18257aba4f | 54 | lcd.line(93,17,107,17,1); |
Hamac | 0:9e18257aba4f | 55 | lcd.line(88,1,95,1,1); //H |
Hamac | 0:9e18257aba4f | 56 | lcd.line(105,1,112,1,1); |
Hamac | 0:9e18257aba4f | 57 | lcd.line(88,31,95,31,1); |
Hamac | 0:9e18257aba4f | 58 | lcd.line(105,31,112,31,1); |
Hamac | 0:9e18257aba4f | 59 | |
Hamac | 0:9e18257aba4f | 60 | lcd.line(88,3,90,3,1); |
Hamac | 0:9e18257aba4f | 61 | lcd.line(93,3,95,3,1); |
Hamac | 0:9e18257aba4f | 62 | |
Hamac | 0:9e18257aba4f | 63 | lcd.line(110,3,112,3,1); |
Hamac | 0:9e18257aba4f | 64 | lcd.line(105,3,107,3,1); |
Hamac | 0:9e18257aba4f | 65 | |
Hamac | 0:9e18257aba4f | 66 | lcd.line(88,29,90,29,1); |
Hamac | 0:9e18257aba4f | 67 | lcd.line(93,29,95,29,1); |
Hamac | 0:9e18257aba4f | 68 | |
Hamac | 0:9e18257aba4f | 69 | lcd.line(110,29,112,29,1); |
Hamac | 0:9e18257aba4f | 70 | lcd.line(105,29,107,29,1); |
Hamac | 0:9e18257aba4f | 71 | |
Hamac | 0:9e18257aba4f | 72 | lcd.line(88,3,88,1,1); |
Hamac | 0:9e18257aba4f | 73 | lcd.line(95,3,95,1,1); |
Hamac | 0:9e18257aba4f | 74 | lcd.line(112,3,112,1,1); |
Hamac | 0:9e18257aba4f | 75 | lcd.line(105,3,105,1,1); |
Hamac | 0:9e18257aba4f | 76 | lcd.line(88,29,88,31,1); |
Hamac | 0:9e18257aba4f | 77 | lcd.line(95,29,95,31,1); |
Hamac | 0:9e18257aba4f | 78 | lcd.line(112,29,112,31,1); |
Hamac | 0:9e18257aba4f | 79 | lcd.line(105,29,105,31,1); |
Hamac | 0:9e18257aba4f | 80 | |
Hamac | 0:9e18257aba4f | 81 | |
Hamac | 0:9e18257aba4f | 82 | lcd.line(20,1,25,4,1); |
Hamac | 0:9e18257aba4f | 83 | |
Hamac | 0:9e18257aba4f | 84 | lcd.line(25,4,25,29,1); //P |
Hamac | 0:9e18257aba4f | 85 | lcd.line(19,1,35,1,1); |
Hamac | 0:9e18257aba4f | 86 | lcd.line(35,1,38,5,1); |
Hamac | 0:9e18257aba4f | 87 | lcd.line(38,5,38,13,1); |
Hamac | 0:9e18257aba4f | 88 | lcd.line(35,16,29,16,1); |
Hamac | 0:9e18257aba4f | 89 | lcd.line(38,13,35,16,1); |
Hamac | 0:9e18257aba4f | 90 | |
Hamac | 0:9e18257aba4f | 91 | lcd.line(28,16,28,29,1); //P |
Hamac | 0:9e18257aba4f | 92 | lcd.line(23,31,30,31,1); |
Hamac | 0:9e18257aba4f | 93 | lcd.line(28,5,28,13,1); |
Hamac | 0:9e18257aba4f | 94 | lcd.line(35,6,35,11,1); |
Hamac | 0:9e18257aba4f | 95 | lcd.line(28,4,33,4,1); |
Hamac | 0:9e18257aba4f | 96 | lcd.line(28,13,33,13,1); |
Hamac | 0:9e18257aba4f | 97 | lcd.line(34,5,34,5,1); |
Hamac | 0:9e18257aba4f | 98 | lcd.line(34,12,34,12,1); |
Hamac | 0:9e18257aba4f | 99 | |
Hamac | 0:9e18257aba4f | 100 | lcd.line(23,29,25,29,1); |
Hamac | 0:9e18257aba4f | 101 | lcd.line(28,29,30,29,1); |
Hamac | 0:9e18257aba4f | 102 | |
Hamac | 0:9e18257aba4f | 103 | lcd.line(23,29,23,31,1); |
Hamac | 0:9e18257aba4f | 104 | lcd.line(30,29,30,31,1); |
Hamac | 0:9e18257aba4f | 105 | |
Hamac | 0:9e18257aba4f | 106 | //REMPLISSAGE P |
Hamac | 0:9e18257aba4f | 107 | lcd.line(23,30,30,30,1); |
Hamac | 0:9e18257aba4f | 108 | lcd.line(26,1,26,31,1); |
Hamac | 0:9e18257aba4f | 109 | lcd.line(27,1,27,31,1); |
Hamac | 0:9e18257aba4f | 110 | lcd.line(28,1,28,31,1); |
Hamac | 0:9e18257aba4f | 111 | |
Hamac | 0:9e18257aba4f | 112 | lcd.line(23,2,35,2,1); |
Hamac | 0:9e18257aba4f | 113 | lcd.line(24,3,36,3,1); |
Hamac | 0:9e18257aba4f | 114 | lcd.line(32,4,36,4,1); |
Hamac | 0:9e18257aba4f | 115 | lcd.line(34,5,37,5,1); |
Hamac | 0:9e18257aba4f | 116 | lcd.line(35,6,37,6,1); |
Hamac | 0:9e18257aba4f | 117 | lcd.line(35,7,37,7,1); |
Hamac | 0:9e18257aba4f | 118 | lcd.line(35,8,37,8,1); |
Hamac | 0:9e18257aba4f | 119 | lcd.line(35,9,37,9,1); |
Hamac | 0:9e18257aba4f | 120 | lcd.line(35,10,37,10,1); |
Hamac | 0:9e18257aba4f | 121 | lcd.line(35,11,37,11,1); |
Hamac | 0:9e18257aba4f | 122 | lcd.line(35,12,37,12,1); |
Hamac | 0:9e18257aba4f | 123 | lcd.line(34,12,37,12,1); |
Hamac | 0:9e18257aba4f | 124 | |
Hamac | 0:9e18257aba4f | 125 | lcd.line(28,13,37,13,1); |
Hamac | 0:9e18257aba4f | 126 | lcd.line(28,14,36,14,1); |
Hamac | 0:9e18257aba4f | 127 | lcd.line(28,15,35,15,1); |
Hamac | 0:9e18257aba4f | 128 | |
Hamac | 0:9e18257aba4f | 129 | //REMPLISSAGE H |
Hamac | 0:9e18257aba4f | 130 | lcd.line(89,2,94,2,1); |
Hamac | 0:9e18257aba4f | 131 | lcd.line(89,30,94,30,1); |
Hamac | 0:9e18257aba4f | 132 | lcd.line(105,2,112,2,1); |
Hamac | 0:9e18257aba4f | 133 | lcd.line(105,30,112,30,1); |
Hamac | 0:9e18257aba4f | 134 | |
Hamac | 0:9e18257aba4f | 135 | lcd.line(91,2,91,30,1); |
Hamac | 0:9e18257aba4f | 136 | lcd.line(92,2,92,30,1); |
Hamac | 0:9e18257aba4f | 137 | lcd.line(109,2,109,30,1); |
Hamac | 0:9e18257aba4f | 138 | lcd.line(108,2,108,30,1); |
Hamac | 0:9e18257aba4f | 139 | |
Hamac | 0:9e18257aba4f | 140 | lcd.line(93,18,107,18,1); |
Hamac | 0:9e18257aba4f | 141 | lcd.line(93,19,107,19,1); |
Hamac | 0:9e18257aba4f | 142 | |
Hamac | 0:9e18257aba4f | 143 | } |
Hamac | 0:9e18257aba4f | 144 |