I’m working on a project using RF24 that’ll run on two different boards (a reader and a writer). There’s some shared logic between them (configuring the radio, encoding/decoding payloads, etc). How can I structure my codebase to use these shared resources, easily be able to specify which version of main() I want to compile, and not upload unnecessary code (i.e. avoid bundling both the reader main and the writer main and branching at runtime)?
Right now, my solution for this is putting the entrypoints in a folder and using build_src_filter to ignore all modes but one: