Exception
This commit is contained in:
@@ -52,9 +52,9 @@ typedef struct PinIO
|
||||
unsigned long time;
|
||||
double duration;
|
||||
unsigned int nb; // compteur d'activation
|
||||
int memory;
|
||||
unsigned char raising;
|
||||
unsigned char falling;
|
||||
int memory; // valeur précédente
|
||||
unsigned char raising; // front montant
|
||||
unsigned char falling; // front descendant
|
||||
} PinIO;
|
||||
|
||||
PinIO _digital[256];
|
||||
@@ -75,8 +75,6 @@ void pinMode(unsigned char p, unsigned char mode)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* KEYBOARD */
|
||||
|
||||
typedef struct
|
||||
@@ -323,7 +321,7 @@ class MiseAEchelle
|
||||
float minEntree;
|
||||
float minSortie;
|
||||
float maxEntree;
|
||||
float maxSortie;
|
||||
float maxSortie;
|
||||
};
|
||||
|
||||
/* READ */
|
||||
@@ -351,6 +349,8 @@ void digitalWrite(unsigned int p, int value)
|
||||
// En panne !
|
||||
if (!(_digital[p].mode & 0x01))
|
||||
{
|
||||
_digital[p].ivalue = 0;
|
||||
_digital[p].dvalue = 0.0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user