-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[READY] Adding EEPROM read/write functionality #6
Conversation
@EvanSimpson r? |
// If this is the last byte | ||
if (i == numBytes-1) { | ||
// Return our successfully read bytes | ||
callback(null, bytes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (callback)
var address = address & 0xFF; | ||
self.startProgramming(function(err) { | ||
if (err) { | ||
return callback(err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (callback)
One last callback check and then r+ |
} | ||
self._transfer([command, 0x00, address, data], function(err, response) { | ||
if (err) { | ||
return callback(err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
[READY] Adding single byte read/writes from eeprom
Adds the following API for reading and writing bytes: