Exception

This commit is contained in:
2025-12-07 15:51:07 +01:00
parent 5d6ce300f3
commit 8c8dc55db4
2 changed files with 98 additions and 16 deletions

View File

@@ -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;
}