I have working I2C code for the VCNL4010 light sensor and working code for PWM (that I test with an RC filter and look at the voltage output).
While both of these codes worked fine independently, when I insert the I2C code into the PWM code, the PWM no longer outputs.
In the attached code, if I comment lines 26-41 which are some I2C calls, then the PWM outputs, whereas if I leave them in, the PWM stops.
Any ideas?
While both of these codes worked fine independently, when I insert the I2C code into the PWM code, the PWM no longer outputs.
In the attached code, if I comment lines 26-41 which are some I2C calls, then the PWM outputs, whereas if I leave them in, the PWM stops.
Any ideas?