#include "mcc_generated_files/system.h"
#include "mcc_generated_files/mcc.h"
#include "mcc_generated_files/cap1xxx_example.h"
int main(void)
{
    // initialize the device
    SYSTEM_Initialize();

    // the CAP1xxx device needs at least 200ms at power up to respond the I2C command
    // this is a user-defined function to delay at least 200ms before excute CAP1xxx initialization.
    my_delay_function();

    CAP1xxx_initializationExample();

    while (1)
    {
        CAP1xxx_handleGeneralStatusExample();
        CAP1xxx_readSensorStatusExample();
    }
    return 1; 
}