GUI: more tweaks to exported code

pull/5/head
Chip Audette 7 years ago
parent 73d72b2731
commit 95e19e6f98
  1. 13
      docs/red/main.js

@ -130,22 +130,23 @@ var RED = (function() {
cpp += "void setup(void) {\n";
cpp += "\t" + "//Start the USB serial link (to enable debugging)\n";
cpp += "\t" + "Serial.begin(115200); delay(500);\n";
cpp += "\t" + "Serial.println(\"Program Starting...\");\n";
cpp += "\t" + "Serial.println(\"Setup starting...\");\n";
cpp += "\t" + "\n"
cpp += "\t" + "//Allocate dynamically shuffled memory for the audio subsystem\n";
cpp += "\t" + "AudioMemory(10); AudioMemory_F32(10)\n";
cpp += "\t" + "AudioMemory(10); AudioMemory_F32(10);\n";
cpp += "\t" + "\n";
cpp += "\t" + "//Put your own setup code here\n";
cpp += "\t" + "\n";
cpp += "\t" + "Serial.println(\"Setup Complete.\t);\n";
cpp += "};";
cpp += "\t" + "//End of setup\n";
cpp += "\t" + "Serial.println(\"Setup complete.\");\n";
cpp += "};\n";
// generate loop()
cpp += "\n";
cpp += "\n";
cpp += "//After setup(), the loop function loops forever.\n";
cpp += "//Note that the audio modules are called in the background,\n";
cpp += "//they do not need to be serviced by the loop() function.\n"
cpp += "//Note that the audio modules are called in the background.\n";
cpp += "//They do not need to be serviced by the loop() function.\n"
cpp += "void loop(void) {\n";
cpp += "\n";
cpp += "};";

Loading…
Cancel
Save