How to upload a file in the Ben Eater Unlock sketch? #33
-
|
I need to upload a BIN file to the EEPROM with the Ben Eater Arduino program, how could you do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
After thinking about this a bit more, here's a theory on how it could happen: with open(rom.bin, "rb") as file:
for x in file:
list.append(x)And then I could copy and paste that into the Arduino file, and go through the list and write to the EEPROM. Please feel free to point out any flaws with this plan. |
Beta Was this translation helpful? Give feedback.
After thinking about this a bit more, here's a theory on how it could happen:
So I first write a python script that would convert the BIN file into a list, which could look something like this:
And then I could copy and paste that into the Arduino file, and go through the list and write to the EEPROM.
(The list would not have 32k items, but the Arduino Code would first fill the entire EEPROM with EAs and then go through the machine code.)
Please feel free to point out any flaws with this plan.