Closed JThobbyist closed 11 months ago
No, those shouldn't do anything different, but did you rename the BOARD.py file?
Unless it's explicit, the board name comes from the filename, so if you rename then any definitions that were #ifdef PUCKJS
won't work.
You'll need to add 'boardname' : "PUCKJS",
to the file like is in: https://github.com/espruino/Espruino/blob/master/boards/PUCKJS_MINIMAL.py#L23
For saved_code, the docs we have are at: https://github.com/espruino/Espruino/blob/master/README_BuildProcess.md#chip
But you could try looking at PUCKJS_MINIMAL.py for how it can be tweaked to add more space (if that space isn't being used for code)
Oh wow. I did rename it!Thanks, Gordon!On Jul 27, 2023, at 4:35 AM, Gordon Williams @.***> wrote: No, those shouldn't do anything different, but did you rename the BOARD.py file? Unless it's explicit, the board name comes from the filename, so if you rename then any definitions that were #ifdef PUCKJS won't work. You'll need to add 'boardname' : "PUCKJS", to the file like is in: https://github.com/espruino/Espruino/blob/master/boards/PUCKJS_MINIMAL.py#L23 For saved_code, the docs we have are at: https://github.com/espruino/Espruino/blob/master/README_BuildProcess.md#chip But you could try looking at PUCKJS_MINIMAL.py for how it can be tweaked to add more space (if that space isn't being used for code)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
Great - that'll be it then :)
After building 2v18.102 for PuckJS with minor customizations to the board.py file, I found that
E.getBattery
is undefined, and the entirePuck
class is missing :(AFAIK these changes to PUCKJS.py shouldn't remove any classes. If so, someone please correct me.
Also, side-note: I couldn't find great documentation about the 'saved_code' parameters, and how changing them affects the different sizes of the areas of flash that get allocated.
Here are the customizations to the PUCKJS.py that I made: