-
-
Save tjvantoll/27fc2af25ca6a7855ce354e995fb1f23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#include <Notecard.h> | |
#define usbSerial Serial | |
#define productUID "com.tvantoll.blues:project_name" | |
HardwareSerial stlinkSerial(PIN_VCP_RX, PIN_VCP_TX); | |
Notecard notecard; | |
void setup() { | |
delay(2500); | |
stlinkSerial.begin(115200); | |
notecard.begin(); | |
notecard.setDebugOutputStream(stlinkSerial); | |
J *req = notecard.newRequest("hub.set"); | |
JAddStringToObject(req, "product", productUID); | |
JAddStringToObject(req, "mode", "continuous"); | |
notecard.sendRequest(req); | |
} | |
void loop() { | |
stlinkSerial.println("Test"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment