scottalford75 / Remora-RP2040-W5500

Remora firmware for RP2040 with W5500 Ethernet
5 stars 7 forks source link

raw string literal for default config #7

Open jschoch opened 11 months ago

jschoch commented 11 months ago

seems like the following is more usable than just the hex array for the defaultConfig

//const char defaultConfig[] = DEFAULT_CONFIG;
const char* defaultConfig = R"( 
{
  "Board": "PICO-JS",
  "Modules": [
    {
      "Thread": "Servo",
      "Type": "Blink",
      "Comment": "Blinky",
      "Pin": "GP25",
      "Frequency": 2
    }
  ]
}
)";