private
/
Test2
..
Diff: POH.h
- Revision:
- 0:9e18257aba4f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/POH.h Tue Jan 10 14:03:24 2017 +0000 @@ -0,0 +1,144 @@ +#include "mbed.h" +#include "C12832.h" + +C12832 lcd (PA_7, PA_5, PA_6, PA_8, PB_6); + +int POH () +{ + lcd.cls(); + lcd.circle(64,16,12,1); + //lcd.circle(64,16,15,1); + + lcd.line( 61, 1, 67, 1, 1); //barre haut rond + lcd.line( 61, 31, 67, 31, 1); //barre bas rond + lcd.line( 48, 23, 51, 27, 1); + lcd.line( 76, 4, 79, 8, 1); + lcd.line( 52, 4, 49, 8, 1); + lcd.line( 76, 27, 79, 23, 1); + + lcd.line( 64, 1, 64, 4, 1); //barre liaison rond + lcd.line( 64, 28, 64, 31, 1); //barre liaison rond + lcd.line( 74, 22, 77, 25, 1); + lcd.line( 77, 6, 74, 8, 1); + lcd.line( 50, 25, 53, 23, 1); + lcd.line( 53, 8, 51, 5, 1); + + + lcd.line( 53, 18, 75, 18, 1); //barre bouche + + lcd.line( 57, 18, 57, 25, 1); //barre dent + lcd.line( 61, 18, 61, 28, 1); //barre dent + lcd.line( 67, 18, 67, 28, 1); //barre dent + lcd.line( 71, 18, 71, 25, 1); //barre dent + + + lcd.circle(58,13,3,1); //Yeux + lcd.circle(70,13,3,1); + lcd.circle(58,13,2,1); + lcd.circle(70,13,2,1); + lcd.circle(58,13,1,1); + lcd.circle(70,13,1,1); + + lcd.line(63,15,65,15,1); //nez + lcd.line(64,14,64,16,1); + + + lcd.line(110,3,110,29,1); //H + lcd.line(90,3,90,29,1); + lcd.line(93,20,107,20,1); + + lcd.line(107,3,107,17,1); //H + lcd.line(93,3,93,17,1); + lcd.line(107,20,107,29,1); //H + lcd.line(93,20,93,29,1); + lcd.line(93,17,107,17,1); + lcd.line(88,1,95,1,1); //H + lcd.line(105,1,112,1,1); + lcd.line(88,31,95,31,1); + lcd.line(105,31,112,31,1); + + lcd.line(88,3,90,3,1); + lcd.line(93,3,95,3,1); + + lcd.line(110,3,112,3,1); + lcd.line(105,3,107,3,1); + + lcd.line(88,29,90,29,1); + lcd.line(93,29,95,29,1); + + lcd.line(110,29,112,29,1); + lcd.line(105,29,107,29,1); + + lcd.line(88,3,88,1,1); + lcd.line(95,3,95,1,1); + lcd.line(112,3,112,1,1); + lcd.line(105,3,105,1,1); + lcd.line(88,29,88,31,1); + lcd.line(95,29,95,31,1); + lcd.line(112,29,112,31,1); + lcd.line(105,29,105,31,1); + + + lcd.line(20,1,25,4,1); + + lcd.line(25,4,25,29,1); //P + lcd.line(19,1,35,1,1); + lcd.line(35,1,38,5,1); + lcd.line(38,5,38,13,1); + lcd.line(35,16,29,16,1); + lcd.line(38,13,35,16,1); + + lcd.line(28,16,28,29,1); //P + lcd.line(23,31,30,31,1); + lcd.line(28,5,28,13,1); + lcd.line(35,6,35,11,1); + lcd.line(28,4,33,4,1); + lcd.line(28,13,33,13,1); + lcd.line(34,5,34,5,1); + lcd.line(34,12,34,12,1); + + lcd.line(23,29,25,29,1); + lcd.line(28,29,30,29,1); + + lcd.line(23,29,23,31,1); + lcd.line(30,29,30,31,1); + + //REMPLISSAGE P + lcd.line(23,30,30,30,1); + lcd.line(26,1,26,31,1); + lcd.line(27,1,27,31,1); + lcd.line(28,1,28,31,1); + + lcd.line(23,2,35,2,1); + lcd.line(24,3,36,3,1); + lcd.line(32,4,36,4,1); + lcd.line(34,5,37,5,1); + lcd.line(35,6,37,6,1); + lcd.line(35,7,37,7,1); + lcd.line(35,8,37,8,1); + lcd.line(35,9,37,9,1); + lcd.line(35,10,37,10,1); + lcd.line(35,11,37,11,1); + lcd.line(35,12,37,12,1); + lcd.line(34,12,37,12,1); + + lcd.line(28,13,37,13,1); + lcd.line(28,14,36,14,1); + lcd.line(28,15,35,15,1); + + //REMPLISSAGE H + lcd.line(89,2,94,2,1); + lcd.line(89,30,94,30,1); + lcd.line(105,2,112,2,1); + lcd.line(105,30,112,30,1); + + lcd.line(91,2,91,30,1); + lcd.line(92,2,92,30,1); + lcd.line(109,2,109,30,1); + lcd.line(108,2,108,30,1); + + lcd.line(93,18,107,18,1); + lcd.line(93,19,107,19,1); + + } + \ No newline at end of file