I am fairly new to the world of Teensy. I have discovered something very interesting regarding analog readings of the Teensy compared to those of Arduino UNO, Pro Micro and MEGA. I will use the very same code to read 4 different pots on the UNO, Pro Micro and MEGA and the readings on my MIDI output monitor is constantly changing. I upload that same code onto the Teensy 2.0 and the 3.2 and the readings are as stable as a rock. I have spent days and days trying to get the same solid, stable analog read results from the UNO, Pro Micro and MEGA. I eventually throw my hands up and just go back to the Teensy and then, problem solved - solid, stable results. Has anyone else observed the same thing? I am perplexed by what I'm seeing.
By the way, I am using the following library: #include <ResponsiveAnalogRead.h>
And here is the code for reading the pots:
void getAnalogData() {
for (int i = 0; i < A_PINS; i++) {
// update the ResponsiveAnalogRead object every loop
analog.update();
// if the repsonsive value has change, print out 'changed'
if (analog.hasChanged()) {
data = analog.getValue() >> 3;
if (data != dataLag) {
dataLag = data;
usbMIDI.sendControlChange(CCID, data, channel);
By the way, I am using the following library: #include <ResponsiveAnalogRead.h>
And here is the code for reading the pots:
void getAnalogData() {
for (int i = 0; i < A_PINS; i++) {
// update the ResponsiveAnalogRead object every loop
analog.update();
// if the repsonsive value has change, print out 'changed'
if (analog.hasChanged()) {
data = analog.getValue() >> 3;
if (data != dataLag) {
dataLag = data;
usbMIDI.sendControlChange(CCID, data, channel);