mirror of
				https://github.com/digistump/DigistumpArduino.git
				synced 2025-11-03 21:14:46 -08:00 
			
		
		
		
	Initial import of support files for all Digistump boards - Digispark, Pro, DigiX - including libraries, examples, tools, and other support files for the Arduino IDE
This commit is contained in:
		@@ -0,0 +1,16 @@
 | 
			
		||||
#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();
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user