extern volatile uint8_t I2CSlaveBuffer[I2C_BUFSIZE];
extern volatile uint32_t I2CReadLength, I2CWriteLength;
-uint32_t i;
-uint8_t monthday[12]={31,28,31,30,31,30,31,31,30,31,30,31};
-
static bool _isl12022mInitialised = false;
/**************************************************************************/
isl12022mError_t isl12022mWrite8 (uint8_t address, uint8_t reg, uint32_t value)
{
// Clear write buffers
+ uint32_t i;
for ( i = 0; i < I2C_BUFSIZE; i++ )
{
I2CMasterBuffer[i] = 0x00;
return ISL12022M_ERROR_I2C_BUFFEROVERFLOW;
// Clear write buffers
+ uint32_t i;
for ( i = 0; i < I2C_BUFSIZE; i++ )
{
I2CMasterBuffer[i] = 0x00;