Outils pour utilisateurs

Outils du site


wiki:divers:essai_fabrication_d_optique

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
wiki:divers:essai_fabrication_d_optique [2017/01/12 14:18]
Christian Simon créée
wiki:divers:essai_fabrication_d_optique [2020/10/05 14:39] (Version actuelle)
Ligne 2: Ligne 2:
  
 Banc ad hoc en OpenSCAD : Banc ad hoc en OpenSCAD :
 +<code>
 $fn=10; $fn=10;
 difference() { union () { cube([15,40,3]); difference() { union () { cube([15,40,3]);
Ligne 12: Ligne 13:
 difference () { cube([15,3,15]); rotate ([90,0,0]) translate([7.5,10,-5]) cylinder(h=6, d=5);  difference () { cube([15,3,15]); rotate ([90,0,0]) translate([7.5,10,-5]) cylinder(h=6, d=5); 
 } }
 +</code>
 +Programme Arduino LED RGB :
 +<code>
 +/*
 +RGB
 +  */
 +
 +int RED = 6;
 +int GREEN = 5;
 +int BLUE = 3;
 +
 +void setup() {
 +  pinMode(RED, OUTPUT);
 +  pinMode(GREEN, OUTPUT);
 +  pinMode(BLUE, OUTPUT);
 +}
 +
 +// the loop function runs over and over again forever
 +void loop() {
 +  digitalWrite(RED, HIGH);   // turn the LED on (HIGH is the voltage level)
 +  delay(1000);                       // wait for a second
 +  digitalWrite(RED, LOW);    // turn the LED off by making the voltage LOW
 +  delay(1000);                       // wait for a second
 +  
 +  digitalWrite(GREEN, HIGH);   // turn the LED on (HIGH is the voltage level)
 +  delay(1000);                       // wait for a second
 +  digitalWrite(GREEN, LOW);    // turn the LED off by making the voltage LOW
 +  delay(1000);      
 +
 +       
 +  digitalWrite(BLUE, HIGH);   // turn the LED on (HIGH is the voltage level)
 +  delay(1000);                       // wait for a second
 +  digitalWrite(BLUE, LOW);    // turn the LED off by making the voltage LOW
 +  delay(1000);           
 +}
 +</code>
 +
wiki/divers/essai_fabrication_d_optique.1484230687.txt.gz · Dernière modification: 2017/01/12 14:18 de Christian Simon