5d9c67c76d
- Rename project to calculatorFirmware in CMakeLists.txt - Add complete documentation in README.md (hardware specifications, pinouts, FreeRTOS tasks, BigNumber math engine, WebSockets protocol, OTA guide, and AI disclaimer) - Add 5 high-resolution GUI screenshots for dashboard, lighting studio, key mapping, macro studio, and system config
17 lines
620 B
Python
17 lines
620 B
Python
Import("env")
|
|
import os
|
|
|
|
def before_build(source, target, env):
|
|
lib_path = env.subst("$PROJECT_LIBDEPS_DIR/$PIOENV/ESP32 BLE Keyboard/src/BleKeyboard.h")
|
|
if os.path.exists(lib_path):
|
|
with open(lib_path, "r") as f:
|
|
content = f.read()
|
|
if "<functional>" not in content:
|
|
content = content.replace("#include <Print.h>", "#include <Print.h>\n#include <functional>")
|
|
with open(lib_path, "w") as f:
|
|
f.write(content)
|
|
print("Patched BleKeyboard.h with <functional>")
|
|
|
|
before_build(None, None, env)
|
|
env.AddPreAction("buildprog", before_build)
|