Author Topic: DigiSpark Pro Serial Communication Question  (Read 230 times)

pfoster4

  • Newbie
  • *
  • Posts: 1
DigiSpark Pro Serial Communication Question
« on: June 15, 2017, 04:23:06 pm »
I trying to see the raw value of a FSR on the serial monitor.

Ive gone all the way back to the "Digispark CDC Beta Library" https://digistump.com/board/index.php?topic=1519.0 to try to get the serial communication working. I have gotten the ECHO example (below) to upload, but when I try to open the serial monitor, it says "Board at COM24 is not available"

Is there any recent updates on the CDC library?
I'm using Arduino 1.6.12 on Windows 7


***EXAMPLE ECHO CODE***

Code: [Select]
#include <DigiCDC.h>
void setup() {               
  // initialize the digital pin as an output.
  SerialUSB.begin();
  SerialUSB.println("CDC Test"); 
}

// the loop routine runs over and over again forever:
void loop() {
 
  if (SerialUSB.available()) {
    SerialUSB.write(SerialUSB.read());
  }
 
   SerialUSB.delay(10);               // keep usb alive // can alos use SerialUSB.refresh();
}

« Last Edit: June 15, 2017, 04:27:26 pm by pfoster4 »