Page 1 of 1

Reading I2C from timer interupts

Posted: Sun Aug 12, 2018 1:47 am
by gr82morozr
Hi All, I am new to ESP32 world, and now working on my first project.

I am trying to read MPU6050 inside a timer interrupt, but always get 0 values. But without using timer interupts, it works fine.

Can anyone please adise what do I miss here ? Much appreciated.
test_i2c_timer.txt
(1.7 KiB) Downloaded 885 times

Re: Reading I2C from timer interupts

Posted: Mon Aug 13, 2018 10:58 am
by pipi61
in interrupt set the flag variable, and main loop check this flag and read i2c and clear the flag