Index
 
  The Wiring 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: hbarragan [at] uniandes.edu.co
Name  

clear()

   
Examples  
#include <Binary.h> 
#include <Sprite.h> 
#include <Matrix.h> 
 
Matrix myMatrix = Matrix(0, 2, 1); 
 
void setup() 
{ 
} 
 
void loop() 
{ 
  myMatrix.clear(); // clear display 
 
  delay(1000); 
 
  // turn some pixels on 
  myMatrix.write(1, 5, HIGH); 
  myMatrix.write(2, 2, HIGH); 
  myMatrix.write(2, 6, HIGH); 
  myMatrix.write(3, 6, HIGH); 
  myMatrix.write(4, 6, HIGH); 
  myMatrix.write(5, 2, HIGH); 
  myMatrix.write(5, 6, HIGH); 
  myMatrix.write(6, 5, HIGH); 
 
  delay(1000); 
} 

Description   The clear() method clears the matrix display.
   
Syntax  
matrix.clear()
   
Parameters  
matrix   The Matrix object

   
Returns   None
   
Usage   Application