kimppa:
Hey guys,
I'm writing a library for myself and I run on a problem. I wanna use my library in Uno, Mega and Micro boards and write data to Serial. For Mega my program runs nicely but not on Uno and Micro. I know that the problem is caused because they use different serial port numbers so my question is; Is there any way to detect what board I'm using and determine the serial port according to that knowledge?Thank you and sorry for the grammar errors!
Another idea might be to use an argument variable to set the board type and use that for different Serial schemes.
If you have to instantiate a class, you could make it part of the parameters.
If you're only sending to the PC, I don't think you need to compile any differently for the various boards.
Your grammar is better than many folks who've been born in English-speaking countries.