source: rtos_arduino/trunk/arduino_lib/libraries/Robot_Control/examples/learn/CleanEEPROM/CleanEEPROM.ino@ 136

Last change on this file since 136 was 136, checked in by ertl-honda, 8 years ago

ライブラリとOS及びベーシックなサンプルの追加.

File size: 850 bytes
Line 
1/*
2 Clean EEPROM
3
4 This example erases the user information stored on the
5 external EEPROM memory chip on your robot.
6
7 BEWARE, this will erase the following information:
8 - your name
9 - your robots name given by you
10 - your city and country if you configured them via software
11
12 EEPROMs shouldn't be rewritten too often, therefore the
13 code runs only during setup and not inside loop.
14
15 Circuit:
16 * Arduino Robot
17
18 created 1 May 2013
19 by X. Yang
20 modified 12 May 2013
21 by D. Cuartielles
22
23 This example is in the public domain
24 */
25
26#include <ArduinoRobot.h>
27#include <Wire.h>
28#include <SPI.h>
29
30void setup() {
31 // initialize the robot
32 Robot.begin();
33
34 // write empty strings for the different fields
35 Robot.userNameWrite("");
36 Robot.robotNameWrite("");
37 Robot.cityNameWrite("");
38 Robot.countryNameWrite("");
39}
40
41void loop() {
42 // do nothing
43}
Note: See TracBrowser for help on using the repository browser.