8 years, 10 months ago.

USBSerial Problem and USB examples

Hello!

I had to change library from Serial to USBSerial. I am having small problems here. Does anbody have more examples to send me?

The program I made is blocking when receiving data from the attach interrupt, as follows:

pc.attach(&serialCallback);

...

void serialCallback(void){
  
        while(pc.readable()){
            pc._putc(pc._getc());
            }
        
    }

Some examples would help me a lot!

Thanks,

OF COURSE! you cant use those functions inside an interrupt!!!

posted by Thiago . 25 Jun 2015
Be the first to answer this question.