i2c/serial java comm. toggle