[Main] Add main.pde file with simple detection of gearswitch operation