Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add to return word in bytes, and int

  • Loading branch information...
commit 0f4ffe8661de34911f8ad502f60a2012937f4c75 1 parent 9ccdee4
@sweemeng authored
View
11 libraries/storyboard/WordStorage.cpp
@@ -13,3 +13,14 @@ char WordStorage::read(int pos){
void WordStorage::write(int pos,int data){
EEPROM.write(pos,data);
}
+
+int WordStorage::read_int(int pos){
+ int letter = EEPROM.read(pos);
+ return letter;
+}
+
+byte WordStorage::read_byte(int pos){
+ int letter = EEPROM.read(pos);
+ return byte(letter);
+
+}
View
4 libraries/storyboard/WordStorage.h
@@ -7,7 +7,9 @@ class WordStorage{
public:
WordStorage();
char read(int);
- void write(int,int);
+ void write(int,int);
+ int read_int(int);
+ byte read_byte(int);
};
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.