You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just needed to do some "shotgun debugging" and realized I wasn't sure how to do that with Arduino (Morse on an LED? :-P ), normally the Hello World program provides the needed pieces to be able to do that.
I think adding a more conventional "Hello World" using SerialUSB would address this.
The text was updated successfully, but these errors were encountered:
Hopefully, this is what you are looking for or more practical with CAN reading?
voidsetup() {
// put your setup code here, to run once:
SerialUSB.begin(0);
pinMode(DS2, OUTPUT);
}
voidloop() {
// put your main code here, to run repeatedly:while (!SerialUSB.available()) {
return;
}
serialUSBEvent();
// USB serial can be really fast, mb/s.delay(500);
}
voidserialUSBEvent() {
String str = "Hello Word!\n";
SerialUSB.write(str.c_str()) ;
}
I tried this quickly with screen /dev/xxx.yourusbport on OS X. For some reason, I have to send a key press to trigger usb event. After that the communication is fine.
Just needed to do some "shotgun debugging" and realized I wasn't sure how to do that with Arduino (Morse on an LED? :-P ), normally the Hello World program provides the needed pieces to be able to do that.
I think adding a more conventional "Hello World" using
SerialUSB
would address this.The text was updated successfully, but these errors were encountered: