non je confirme ca compile pas et ca televerse pas
je met le code en plusieur partie car trop long
//*********************************************************************//
// Nom : lcd 7pouces vmc et puit canadien //
// Autheur : Dirig Gael //
// Date : 15 may, 2018 //
// Version : 1.0 //
// Notes : //
// : //
//*********************************************************************//
//REMETRE DHT4 SUR LES BON LGNE
//REMETTTRE LES BONNE ADRESSE BYTE DES DS18B20
/****************/
/* Déclarations */
/****************/
/** DHT22Broche "DATA" du capteur */
const byte DHT1 = 3;
const byte DHT2 = 4;
const byte DHT3 = 5;
const byte DHT4 = 6;
const byte DHT5 = 7;
//const byte BROCHE_CAPTEURSALLE = 5;
/* Code d'erreur de la fonction readDHT11() et readDHT22() */
const byte DHT_SUCCESS = 0; // Pas d'erreur
const byte DHT_TIMEOUT_ERROR = 1; // Temps d'attente dépassé
const byte DHT_CHECKSUM_ERROR = 2; // Données reçues erronées
//const byte DHT_SUCCESSSALLE = 0; // Pas d'erreur
//const byte DHT_TIMEOUT_ERRORSALLE = 1; // Temps d'attente dépassé
//const byte DHT_CHECKSUM_ERRORSALLE = 2; // Données reçues erronées
#include <OneWire.h> //LIBRAIRIE ONEWIRE
OneWire ds(2); //Bus One Wire sur la pin 2 de l'arduino
#include <UTFT.h> //LIBRAIRIE DE L ECRAN TFT 7 POUCES
UTFT myGLCD(TFT01_70,38,39,40,41); // Ecran TFT LCD7 pouces
extern uint8_t SmallFont[];//LIBRAIRIE UTFT
extern uint8_t BigFont[];// LIBRAIRIE UTFT
extern uint8_t SevenSegNumFont[];//LIBRAIRIE UTFT
extern uint8_t SevenSegmentFull[];//LIBRAIRIE A METTRE DANS DOSSIER
extern uint8_t Grotesk24x48[];//LIBRAIRIE A METTRE DANS DOSSIER
extern uint8_t SixteenSegment64x96Num[];//LIBRAIRIE A METTRE DANS DOSSIER
extern uint8_t GroteskBold32x64[];//LIBRAIRIE A METTRE DANS DOSSIER
extern uint8_t hallfetica_normal[];//LIBRAIRIE A METTRE DANS DOSSIER
extern uint8_t Inconsola[];//LIBRAIRIE A METTRE DANS DOSSIER
byte addr1[8] = {0x28, 0xFF, 0x50, 0x18, 0x86, 0x16, 0x04, 0x6D};//ADRESSE DES DIFFERENT DS18B20
byte addr2[8] = {0x28, 0xFF, 0xBD, 0xD9, 0x86, 0x16, 0x05, 0xB3};
byte addr3[8] = {0x28, 0xFF, 0x4B, 0xF2, 0x86, 0x16, 0x05, 0x6D};
byte addr4[8] = {0x28, 0xFF, 0x50, 0x18, 0x86, 0x16, 0x04, 0x6D};
byte addr5[8] = {0x28, 0xFF, 0x50, 0x18, 0x86, 0x16, 0x04, 0x6D};
byte addr6[8] = {0x28, 0xFF, 0x50, 0x18, 0x86, 0x16, 0x04, 0x6D};
byte addr7[8] = {0x28, 0xFF, 0x50, 0x18, 0x86, 0x16, 0x04, 0x6D};
byte addr8[8] = {0x28, 0xFF, 0x50, 0x18, 0x86, 0x16, 0x04, 0x6D};
int SignBit = 0;
int RendementVmc;
int RendementGlobal;
int RendementPuit;
int pinmoteur = 12;