#include <LiquidCrystal.h>/* The circuit: * LCD RS pin to digital pin 7 * LCD E pin to digital pin 6 * LCD D4 pin to digital pin 5 * LCD D5 pin to digital pin 4 * LCD D6 pin to digital pin 3 * LCD D7 pin to digital pin 2 * LCD R/W pin to ground*/LiquidCrystal lcd(7,6,5,4,3,2); // set up the LCD's connection pinsvoid setup(){ lcd.begin(16, 2); // set up the LCD's number of columns and rows: lcd.print("hello, world!");}void loop() {}
#include <EEPROM.h>int a = 0;int value;void setup(){ Serial.begin(9600);}void loop(){ value = EEPROM.read(a); Serial.print(a); Serial.print("\t"); Serial.print(value); Serial.println(); a = a + 1; if (a == 512) a = 0; delay(500);}
#include <EEPROM.h>void setup(){ for (int i = 0; i < 255; i++) EEPROM.write(i, i);}void loop(){}