projets de S3 s4 2021

Dependencies:   mbed TFT_fonts SPI_TFT_ILI9341

Revision:
8:eb61367f53ce
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IUT.h	Sun Oct 18 16:05:21 2020 +0000
@@ -0,0 +1,39 @@
+// declaration utiles à la cartes IUT-BED 
+// reservation des broches 
+#include "SPI_TFT_ILI9341.h"
+#include "Arial12x12.h"
+#include "Arial24x23.h"
+#include "Arial28x28.h"
+#include "font_big.h"
+
+#define     PIN_XP          PC_0
+#define     PIN_XM          PC_1
+#define     PIN_YP          PB_0
+#define     PIN_YM          PA_4
+#define     PIN_MOSI        PA_7
+#define     PIN_MISO        PA_6
+#define     PIN_SCLK        PA_5
+#define     PIN_CS_TFT      PB_4
+#define     PIN_DC_TFT      PB_10
+#define     PIN_BL_TFT      PA_8
+#define     PIN_CS_SD       PP_5
+
+SPI_TFT_ILI9341 TFT(PIN_MOSI, PIN_MISO, PIN_SCLK, PIN_CS_TFT, PIN_BL_TFT, PIN_DC_TFT, "TFT");   //PIN_BL_TFT does not have to be connected
+
+DigitalOut  Wals(PC_13);   // Wals al witch ?
+DigitalIn   k1(PC_10);     // k1   switch 1
+DigitalIn   k2(PC_12);     // k2   switch 1
+DigitalOut  DCpot(PC_3);   // Wapot alim pot
+AnalogIn    pot(PC_2);     // entrée ana pot 
+DigitalOut  led0(PA_14);   // Wled0   
+DigitalOut  led1(PA_15);   // Wled1 
+
+// initialisation diverses 
+void winit()
+   {
+   k1.mode(PullNone);     k2.mode(PullNone); 
+    
+   led0 = 1 ; led1 = 0 ;
+   DCpot = 1 ;  // alimente le pot de la carte 
+   }
+