mirror of
				https://github.com/digistump/DigistumpArduino.git
				synced 2025-10-31 12:34:47 -07:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			400 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			400 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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();
 | |
| } | 
