Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
projets:malinette:hardware:accueil [2016/07/21 10:05] resonance [Boîtier] |
projets:malinette:hardware:accueil [2016/12/13 16:07] (Version actuelle) resonance [Code] |
||
---|---|---|---|
Ligne 63: | Ligne 63: | ||
* Reso-nance Numérique | * Reso-nance Numérique | ||
* 24/06/16 | * 24/06/16 | ||
+ | | ||
+ | * modif : 13/12/2016 | ||
*/ | */ | ||
Ligne 75: | Ligne 77: | ||
const int offsetAna = 20; // > ctlout 20 to control ana | const int offsetAna = 20; // > ctlout 20 to control ana | ||
- | const int offsetOut = 30; // > ctlout 30 to control | + | const int offsetOut = 30; // > ctlout 30 to control |
const long interval = 30; // sampling rate | const long interval = 30; // sampling rate | ||
// SENSORS | // SENSORS | ||
- | int anaState[anaNb]; | + | int anaState[anaNb]; |
int anaValues[anaNb]; | int anaValues[anaNb]; | ||
int anaLastValues[anaNb]; | int anaLastValues[anaNb]; | ||
Ligne 96: | Ligne 98: | ||
{ | { | ||
// Setup output pins (start from 2) | // Setup output pins (start from 2) | ||
- | for (int i = 2; i < (outNb - 2); i++) { | + | for (int i = 2; i < outNb; i++) { |
pinMode(i, OUTPUT); | pinMode(i, OUTPUT); | ||
} | } | ||
Ligne 189: | Ligne 191: | ||
* Reso-nance Numérique | * Reso-nance Numérique | ||
* 24/06/16 | * 24/06/16 | ||
+ | | ||
+ | * modif : 13/12/16 | ||
*/ | */ | ||
Ligne 218: | Ligne 222: | ||
{ | { | ||
// Setup output pins (start from 2) | // Setup output pins (start from 2) | ||
- | for (int i = 2; i < (outNb - 2); i++) { | + | for (int i = 2; i < outNb; i++) { |
pinMode(i, OUTPUT); | pinMode(i, OUTPUT); | ||
} | } |