I read from Olimex’s blog post that is about Google Chrome can use serial port. So I search for example code for testing it and found https://github.com/GoogleChrome/chrome-app-samples/tree/master/serial/ledtoggle. I download them.
I just edit Arduino sketch serial_light.ino from LED 2 to LED 13 in order to use LED that is attached on Arduino Leonardo board. Sketch reads serial port for incoming byte. If ‘y’, it turns on LED. If ‘n’, it turns off LED. I upload sketch and just test by command “cat ‘y’ > /dev/ttyACM0” and “cat ‘n’ > /dev/ttyACM0”. Arduino sketch works as it should be.
Next, I install Google Chrome from repo as in this instructions (I use Fedora Linux). Open Google Chrome then go to menu Tools -> Extensions (or just go to chrome://extensions/) then enable “Developer mode” check box. Click “Load unpacked extension…” button and select folder “ledtoggle” from my previous download. Finally, click “Launch” and see result.