We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e7762a commit 389a927Copy full SHA for 389a927
1 file changed
misc_file_changes.py
@@ -24,8 +24,7 @@ def filesystem_file():
24
file_path = "./cpy/circuitpython/supervisor/shared/filesystem.c"
25
find_and_replace_in_file(file_path,'"CIRCUITPY")','"BSPYTHON")')
26
find_and_replace_in_file(file_path,'const byte buffer[] = "print(\\"Hello World!\\")\\n";','const byte buffer[] = "from kmk.json_keymap import JsonMap\\nkeyboard = JsonMap(\\"layout.json\\").return_keyboard()\\nif __name__ == \\"__main__\\":\\n keyboard.go()\\n";')
27
- find_and_replace_in_file(file_path,'// Create or modify existing code.py file','const byte buffer2[] = "print(\\"Hello World!\\")\\n";\n f_open(fatfs, &fs, "/boot.py", FA_WRITE | FA_CREATE_ALWAYS);\n f_write(&fs, buffer2, sizeof(buffer2) - 1, &char_written);\n f_close(&fs);\n')
28
-
+ find_and_replace_in_file(file_path,'// Create or modify existing code.py file','const byte buffer2[] = "from kmk.json_boot import JsonBoot\\nboot = JsonBoot(\\"layout.json\\")\\n";\n f_open(fatfs, &fs, "/boot.py", FA_WRITE | FA_CREATE_ALWAYS);\n f_write(&fs, buffer2, sizeof(buffer2) - 1, &char_written);\n f_close(&fs);\n')
29
def do_all_the_changes():
30
supervisor_file()
31
filesystem_file()
0 commit comments