Code
- Thème de Giorno, partie 1
- Thème de Giorno, partie 2
Thème de Giorno, partie 1Arduino
Ce code est téléchargé sur le 1er Arduino#include "Color.h"int S[] ={ Pink1, 0, Pink1, 0, Pink1, Blue1, 0, Pink1, 0, Orange2, 0, Pink1, 0, Green1 , Bleu1, 0, Rose1, 0, Rose1, 0, Rose1, Bleu1, 0, Rose1, 0, LVert2, 0, Jaune2, 0, Orange2, Bleu1, 0, Rose1, 0, Rose1, 0, Rose1, Bleu1, 0 , Rose1, 0, Orange2, 0, Rose1, 0, Vert1, Bleu1, 0, Rose1, 0, Rose1, 0, Rose1, Bleu1, Rose1, Orange2, 0, LVert2, 0, Jaune2, 0, Orange2, Bleu1, 0 , Rose1, 0, Rose1, 0, Rose1, Bleu1, 0, Rose1, 0, Orange2, 0, Rose1, 0, Vert1, Bleu1, 0, Rose1, 0, Rose1, 0, Rose1, Bleu1, 0, Rose1, 0 , LVert2, 0, Jaune2, 0, Orange2, Bleu1, 0, Rose1, 0, Rose1, 0, Rose1, Bleu1, 0, Rose1, 0, Orange2, 0, Rose1, 0, Vert1, Bleu1, 0, Rose1, 0 , Rose1, 0, Rose1, 0, Bleu1, Rose1, 0, 0, 0, 0, Rose1, 0, Orange2, 0, Jaune2, LVert2, 0, Vert2, 0, Bleu2, 0, Vert2, 0, Bleu2, Violet2 , 0, Rose2, 0, Violet2, 0, Bleu2, Vert2, 0, Jaune2, 0, Orange2, LBleu1, 0, Bleu1, 0, Violet1, 0, Rose1, 0, Orange2, 0, Jaune2, LVert2, 0, Vert2 , 0, Bleu2, 0, Vert2, 0, Bleu2, Violet2, 0, Rose2, 0, Bleu2, Rose2, Bleu2, 0, Violet2, Rose2, 0, LBlue1, 0, LBlue1, Bleu1, Bleu1, Violet1, 0, Rose1, 0, Orange2, 0, Jaune2, LVert2, 0, Vert2, 0, Bleu2, 0, Vert2, 0, Bleu2, Violet2, 0, Rose2, 0, Violet2, 0, Bleu2, Vert2, 0, Jaune2, 0, Orange2, LBlue1, 0, Bleu1, 0, Violet1, 0, Rose1, 0, Orange2, 0, Jaune2, LVert2, 0, Vert2, 0, Bleu2, 0, Vert2, 0, Bleu2, Violet2, 0, Rose2, 0, Bleu2, Rose2, Bleu2, 0, Violet2, Rose2, 0, LBlue1, 0, LBlue1, Blue1, Blue1, Purple1, 0, Orange2, DOrange2, Pink1, 0, Blue1, 0, 0, Pink1, 0, 0, Pink1, 0, 0, 0, Vert1, 0, Bleu1, 0, Rose1, 0, DOrange2, 0, 0, Bleu1, 0, 0, Rose1, 0, 0, 0, 0, 0, Orange2, DOrange2, Rose1, 0, Bleu1, 0, 0, Pink1, 0, 0, Pink1, 0, 0, Green1, 0, 0, DOrange2, 0, Orange2, 0, DOrange2, 0, 0, Blue1, 0, DOrange1, Yellow1, Green1, DOrange1, Green1, LBlue1, Pink1, Orange2, DOrange2, Pink1, 0, Blue1, 0, 0, Pink1, 0, 0, Pink1, 0, 0, 0, Green1, 0, Blue1, 0, Pink1, 0, DOrange2, 0, 0, Blue1, 0, 0, Rose1, 0, 0, 0, 0, 0, Orange2, DOrange2, Pink1, 0, Blue1, Orange2, 0, Green2, Yellow2, Orange2, Pink1, 0, Blue2, LBlue2, 0, Green2, Orange2, DOrange2, 0, Pink1, Blue1, Pink1, 0, Bleu1, Rose1, 0, Bleu1, Rose1, 0, Bleu1, Rose1, 0, Bleu1, Rose1, Orange2, 0, Vert2, 0, 0, 0, 0, 0, Orange2, 0, 0, 0, 0, 0, 0, Orange2, Jaune2, LVert2, 0, 0, Jaune2, 0, 0, Orange2, 0, DOrange2, 0, 0, Orange2, 0, 0, Jaune2, 0, Vert2, 0, 0, 0, 0, 0, Rose2, 0, 0, 0, 0, 0, Rose1, 0, DOrange2, 0, Orange2, 0, 0, Jaune2, 0, 0, Orange2, 0, DOrange2, 0, 0, Bleu2, 0, 0, DVert2, 0, Vert2, 0, 0, 0, 0, 0, Orange2, 0, 0, 0, 0, 0, 0, Orange2, Jaune2, LVert2, 0, 0, Jaune2, 0, 0, Orange2, 0, DOrange2, 0, 0, Orange2, 0, 0, Jaune2, 0, Vert2, 0, 0, 0, 0, 0, Rose2, 0, 0, 0, 0, 0, Vert2, 0, Violet2, 0, Rose2, 0, 0, DGreen2, 0, 0, Green2, 0, LGreen2, 0, 0, Pink2, 0, 0, Green2, 0, Green2};int L =sizeof(S);int nds =10;void setup() { Serial.begin(115200); pinMode(2, SORTIE); L =L/2; Serial.println(L); Tone();}void loop() {}void Tone() { digitalWrite(2, HIGH); for (int n =0; n Thème de Giorno, partie 2Arduino
Ce code est téléchargé sur le 2ème Arduino#include "Color.h"int S[] ={ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , Rose2, 0, Rose2, 0, Rose2, Bleu2, 0, Rose2, 0, Orange3, 0, Rose2, 0, Vert2, Bleu2, 0, Rose2, 0, Rose2, 0, Rose2, Bleu2, 0, Rose2, 0 , LVert3, 0, Jaune3, 0, Orange3, Bleu2, 0, Rose2, 0, Rose2, 0, Rose2, Bleu2, 0, Rose2, 0, Orange3, 0, Rose2, 0, Vert2, Bleu2, 0, Rose2, 0 , Rose2, 0, Rose2, 0, Bleu2, Rose2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Orange3, DOrange3, Rose2, 0, Bleu 2, 0, 0, Rose2, 0, 0, Rose2, 0, 0, 0, Vert2, 0, Bleu2, 0, Rose2, 0, DOrange3, 0, 0, Bleu2, 0, 0, Rose2, 0, 0, 0, 0, 0, Orange3, DOrange3, Pink2, 0, Blue2, 0, 0, Pink2, 0, 0, Pink2, 0, 0, Green2, 0, 0, DOrange3, 0, Orange3, 0, DOrange3, 0, 0, Bleu2, 0, DOrange2, Jaune2, Vert2, DOrange2, Vert2, LBlue2, Rose2, Orange3, DOrange3, Rose2, 0, Bleu2, 0, 0, Rose2, 0, 0, Rose2, 0, 0, 0, Vert2, 0, Bleu2, 0, Rose2, 0, DOrange3, 0, 0, Bleu2, 0, 0, Rose2, 0, 0, 0, 0, 0, Orange3, DOrange3, Rose2, 0, Bleu2, Orange3, 0, Vert3, Jaune3, Orange3, Rose2, 0, Bleu3, LBleu3, 0, Vert3, Orange3, DOrange3, 0, Rose2, Bleu2, Rose2, 0, Bleu2, Rose2, 0, Bleu2, Rose2, 0, Bleu2, Rose2, 0, Bleu2, Rose2, Orange3, 0, Vert2, 0, 0, 0, 0, 0, Orange2, 0, 0, 0, 0, 0, 0, Orange2, Jaune2, LVert2, 0, 0, Jaune2, 0, 0, Orange2, 0, DOrange2, 0, 0, Orange2, 0, 0, Yellow2, 0, Green2, 0, 0, 0, 0, 0, Pink2, 0, 0, 0, 0, 0, Pink1, 0, DOrange2, 0, Orange2, 0, 0, Jaune2, 0, 0, Orange2, 0, DOrange2, 0, 0, Bleu2, 0, 0, DGreen2, 0, Vert2, 0, 0, 0, 0, 0, Orange2, 0, 0, 0, 0, 0, 0, Orange2, Jaune2, LVert2, 0, 0, Jaune2, 0, 0, Orange2, 0, DOrange2, 0, 0, Orange2, 0, 0, Jaune2, 0, Vert2, 0, 0, 0, 0, 0, Rose2, 0, 0, 0, 0, 0, Rose2, 0, DOrange3, 0, Orange3, 0, 0, DGreen3, 0, 0, Green3, 0, LGreen3, 0, 0, Orange3, 0, 0, Purple2, 0, Pink2 };int L =sizeof(S);int nds =10;void setup() { Serial .begin(115200); pinMode(3, INPUT_PULLUP); L =L/2; Serial.println(L);}boucle vide() { if(!digitalRead(3)) { Tone(); }}void Tone() { pour (int n =0; n