arduino-0022
This commit is contained in:
		
							parent
							
								
									4f99742f03
								
							
						
					
					
						commit
						a9ad0e80a0
					
				
					 803 changed files with 69785 additions and 33024 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
/*
 | 
			
		||||
 * EEPROM Clear
 | 
			
		||||
 *
 | 
			
		||||
 * Sets all of the bytes of the EEPROM to 0.
 | 
			
		||||
 * This example code is in the public domain.
 | 
			
		||||
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include <EEPROM.h>
 | 
			
		||||
 | 
			
		||||
void setup()
 | 
			
		||||
{
 | 
			
		||||
  // write a 0 to all 512 bytes of the EEPROM
 | 
			
		||||
  for (int i = 0; i < 512; i++)
 | 
			
		||||
    EEPROM.write(i, 0);
 | 
			
		||||
    
 | 
			
		||||
  // turn the LED on when we're done
 | 
			
		||||
  digitalWrite(13, HIGH);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void loop()
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
		Reference in a new issue