exporting a variable from i2c to void loop