What is this StandardFirmata_ModifiedAll code doing?

dxw00d:
I don't understand why you think you need Firmata. You already have a sketch that works, according to reply #4. Why do you want to ditch that and replace it with dumb code?

I need Firmata so I can control my Arduino directly from PC, not just manual button pressing.
I need to insert Firmata inside my sketch in order to communicate from Arduino to PC and vice versa.