#include "I2CClasses.h" I2CTransmitter::I2CTransmitter() : LED(p21) { } // The wait statement causes the program to stop working. void I2CTransmitter::transmit() { LED = !LED wait(0.1f); }