Notifications
Clear all
Electronic Components & Theory
3
Posts
3
Users
0
Reactions
2,823
Views
Topic starter
2019-10-24 10:43 am
Recently, Bill put up an EEPROM video with a sketch that included these two lines of cryptic code.
// Send memory address as two 8-bit bytes
Wire.write((int)(address >> 8)); // MSB
Wire.write((int)(address & 0xFF)); // LSB
So, I thought for the benefit of those not so proficient at C++, I would post the graphic below to help explain what is actually happening. I used this a couple of years ago to help me understand the bit bashing involved.
I hope this can be of help to someone!