Teensy 4_1 analogRead is bugging

Status
Not open for further replies.
I'm reading multiple analog Pins on a Teensy 4.0, when I moved my project to teensy 4.1 I started to have some issues, I've solved most of them, but there's still one with no solution, all the time I'm reading the analog Pins A6 A7, but at the moment that I start to read A16, teensy merge the values, and now my A6 and A7 read what A16 should be reading.

Could you help me to know why is this happening?
 

Attachments

  • EventThreadsDevicev2.ino
    73 KB · Views: 33
The chances for an answer would increase if you would not post a 73KB! with 3800 lines! file :)

But maybe you will find someone who will do it anyway!
 
I'm reading multiple analog Pins on a Teensy 4.0, when I moved my project to teensy 4.1 I started to have some issues, I've solved most of them, but there's still one with no solution, all the time I'm reading the analog Pins A6 A7, but at the moment that I start to read A16, teensy merge the values, and now my A6 and A7 read what A16 should be reading.

Could you help me to know why is this happening?

The solution was to kill the thread where I was reading and restart using the void loop
 
Status
Not open for further replies.
Back
Top