Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
fabricademy2017:students:julie.taris:class12-skin-electronics [2018/06/30 15:40]
julie_taris
fabricademy2017:students:julie.taris:class12-skin-electronics [2018/06/30 15:51]
julie_taris
Line 1: Line 1:
 ==== Class 12 : SKIN ELECTRONICS ==== ==== Class 12 : SKIN ELECTRONICS ====
-==== Latex mold of mask from my face  ====+==== Mask and Beating heart with Lilypad and MAX7219 8x8 LED matrix ​ ====
  
  
Line 96: Line 96:
 B00000000}; B00000000};
    
 +</​code>​
 +
 +big heart
 +<​code>​
 //big heart //big heart
 byte Heart2[] = { byte Heart2[] = {
Line 106: Line 110:
 B00111100, B00111100,
 B00011000}; B00011000};
-  +</code> 
-//Sub to transform array #1 into a pattern for the array+Sub to transform array #1 into a pattern for the array 
 +<​code>​
 void Heart1GO() void Heart1GO()
 { {
Line 116: Line 121:
   }   }
 } }
-  +</code> 
-//Sub to transform array #2 into a pattern for the array+Sub to transform array #2 into a pattern for the array 
 +<​code> ​
 void Heart2GO() void Heart2GO()
 { {
Line 126: Line 132:
   }   }
 } }
-  +</code> 
-//This sub will only be run once when the Arduino is started.+This sub will only be run once when the Arduino is started. 
 +<​code> ​
 void setup() { void setup() {
-lc.shutdown(0,​false); ​   //Iniciamos la matriz led #1 +lc.shutdown(0,​false); ​   //We started the LED matrix ​#1 
-lc.shutdown(1,​false); ​ //Iniciamos la matriz led #2 +lc.shutdown(1,​false); ​ //We started the LED matrix ​#2 
-lc.setIntensity(0,​5); ​   //Intensidad de los led en la matriz ​#1 +lc.setIntensity(0,​5); ​   //Intensity of the LEDs in the matrix ​#1 
-lc.setIntensity(1,​5); ​ //Intensidad de los led en la matriz ​#2 +lc.setIntensity(1,​5); ​ //Intensity of the leds in the matrix ​#2 
-lc.clearDisplay(0); ​     //Apagamos todos los led de la matriz ​#1 +lc.clearDisplay(0); ​     //We turn off all the LEDs in matrix ​#1 
-lc.clearDisplay(1); ​   //Apagamos todos los led de la matriz ​#2+lc.clearDisplay(1); ​   //We turn off all the LEDs in matrix ​#2
 } }
-  +</code> 
-//This sub will loop over and over again while the Arduino is powered.+This sub will loop over and over again while the Arduino is powered. 
 +<​code> ​
 void loop() { void loop() {
-Heart1GO(); ​        //Mostramos el patrón ​#1 +Heart1GO(); ​        //We show the pattern ​#1 
-delay(delayTime); ​  //Pequeña pausa +delay(delayTime); ​  //little pause 
-Heart2GO(); ​        //Mostramos el patrón ​#2 +Heart2GO(); ​        //We show the pattern ​#1 
-delay(delayTime); ​  //Pequeña pausa+delay(delayTime); ​  //little pause
 } }