-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCAP_TEMP.c
43 lines (31 loc) · 1.04 KB
/
CAP_TEMP.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <CAP_TEMP.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "KTY_81_110.h"
/********************************************************************
Fichier : CAP_TEMP.C
---------------------------------------------------------------------
Auteur : ISMAIL BEN SALAH
Compilateur : CSS COMPILER
Date : 20.11.2012
Version : 4.134
---------------------------------------------------------------------
Description : Affichage de la distance.
--------------------------Modifications------------------------------
Version : 1.1 - 21.11.2012
Modification : Ajout de fonctions de traitement
*********************************************************************/
void main()
{
port_B_pullups(0x11);
setup_adc_ports(sAN1);
setup_adc(ADC_CLOCK_INTERNAL);
setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
float value_temp=0;
while(TRUE)
{
value_temp=read_kty_81_110();
printf("\nLa température est de %.2f ºC\r",value_temp);
}
}