I test it. I put the serialEvent function in sketch and upload.
I opened the serial monitor and typed single character, after pressing the enter it replied.
As I understand whenever a serial data incomes the serialEvent function triggered.
Wouldn't it be more useful if you got a function called every time you receive a defined character? Something like '\n' for example, so you know you received something that needs your attention.
my serial object has a function called check(), this function is called every time a byte is recived and send's the awnser.
but is there a way to 'hide' the serialEvent function (or serialEvent1...) in my lib?