Skip to content

Instantly share code, notes, and snippets.

@reefwing
Created February 7, 2023 06:53
Show Gist options
  • Save reefwing/9ea6dd1073604c4f58f6d9689903fc13 to your computer and use it in GitHub Desktop.
Save reefwing/9ea6dd1073604c4f58f6d9689903fc13 to your computer and use it in GitHub Desktop.
Stub Arduino Hardware Detection Sketch
#if defined(ARDUINO_ARCH_NRF52840)
#include "nano33ble.h"
#elif defined(ARDUINO_PORTENTA_H7_M7)
#include "portentah7.h"
#elif defined(ARDUINO_ARCH_MBED_RP2040)
#include "pico.h"
#else
#error "Unsupported Hardware"
#endif // target detection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment