FabLab Nîmes / Mbed 2 deprecated FabLab_Station_Meteo

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fonctions.h Source File

fonctions.h

00001 //==============================================================================
00002 //  Fichier : fonctions.h
00003 //  
00004 //  Description de fonctions utilisées pour la station météo
00005 //==============================================================================
00006 //#include "mbed.h"
00007 // #include <string.h>
00008 
00009 //==============================================================================
00010 //             Déclaration des broches
00011 DigitalOut  DEL(PA_11);              // Ligne PA_11 sur la carte Nucléo
00012 Serial      pc(USBTX, USBRX);           // Dialogue Série port USB à 9600 Baud
00013 
00014 //==============================================================================
00015 //              Déclaration des variables et des constante
00016 const char * const titre[] = {"Station Meteo","1.0",};
00017 
00018 //==============================================================================
00019 //              Déclaration des fonctions
00020 void Init_Fonctions(void)
00021 {
00022     pc.printf("\r\n%s",titre[0]);
00023     pc.printf("\tV%s\r\n",titre[1]);
00024     pc.printf("FabLab Nimes\r\n");
00025 }
00026                
00027 //  Nucleo - L031K6
00028 
00029 //  PA_9                    Vin
00030 //  PA_10                   Gnd
00031 //  NRST                    NRST
00032 //  Gnd                     5V
00033 //  PA_12                   PA_2
00034 //  PB_0                    PA_7
00035 //  PB_7                    PA_6
00036 //  PB_6                    PA_5
00037 //  PB_1                    PA_4
00038 //  NC                      PA_3
00039 //  NC                      PA_1
00040 //  PA_8                    PA_0
00041 //  PA_11                   Aref
00042 //  PB_5                    3V3
00043 //  PB_4                    PB_3