Added event mode to i2c code. Tested with Multiwii. Changed i2c_master_test