Data Sheet
4/27/2018 OpenCR1.0
http://emanual.robotis.com/docs/en/parts/controller/opencr10/ 35/50
To use the EEPROM library, a header must be added, and the maximum size of the current
EEPROM is 1 KBytes. Since the EEPROM library has ported what is supported in Arduino, the
basic usage method is the same as that used in other existing Arduino boards. For more
information on how to use it, please refer to the Adunion site.
https://www.arduino.cc/en/Reference/EEPROM
7. 5. 1. Code
#include <EEPROM.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
uint32_t tTime;
static int i = 0;
if( (millis()-tTime) > 100 )
{
Serial.print(EEPROM.read(0));
Serial.print("\t");
Serial.print(EEPROM.read(1));
Serial.print("\t");
Serial.print(EEPROM.read(2));
Serial.println("\t");
tTime = millis();
}
OpenCR1.0
Back to Top ▲