Modifications

Sauter à la navigation Sauter à la recherche
258 octets ajoutés ,  5 avril 2018 à 12:54
Ligne 562 : Ligne 562 :     
// -- Boite à musique --
 
// -- Boite à musique --
    
+
#define BOITE_ENABLE  11
 +
#define BOITE_INPUT  
    
...
 
...
Ligne 573 : Ligne 574 :     
   // ### ZONE HACK ###
 
   // ### ZONE HACK ###
 
+
  pinMode( BOITE_ENABLE, OUTPUT );
 +
  pinMode( BOITE_INPUT, OUTPUT );
 +
  digitalWrite( BOITE_ENABLE , LOW );
    
}
 
}
Ligne 624 : Ligne 627 :  
<syntaxhighlight lang="c">
 
<syntaxhighlight lang="c">
 
void activerBoite(){
 
void activerBoite(){
+
  digitalWrite( BOITE_ENABLE , HIGH );
 
}
 
}
 
void jouerBoite(){
 
void jouerBoite(){
    
+
   analogWrite( BOITE_INPUT , 220);
 
}
 
}
 
void stopBoite(){
 
void stopBoite(){
    
+
   digitalWrite( BOITE_ENABLE , LOW );
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>

Menu de navigation