alexandros
Well-known member
In my setup() function I have the following:
I have defined a macro ANALOG_RESOLUTION 12, and the analogReadResolution is called, as I can see values from potentiometers going from 0 to 4096 (well, a bit less than that, but I think that's a matter of the circuit), but I don't receive the things Teensy is supposed to print to my laptop (it's some data sent to Pure Data).
I tested this with an Arduino UNO and the bytes after analogReadResolution() are being written to the serial line and printed in Pure Data. Is this something known with Teensy?
Code:
#ifdef ANALOG_RESOLUTION
analogReadResolution(ANALOG_RESOLUTION);
int local_index = 1;
transfer_data[local_index++] = NUM_OF_MODULES + 1;
transfer_data[local_index++] = 2;
transfer_data[local_index++] = 0;
transfer_data[local_index++] = ANALOG_RESOLUTION;
Serial.write(transfer_data, local_index);
#endif
I have defined a macro ANALOG_RESOLUTION 12, and the analogReadResolution is called, as I can see values from potentiometers going from 0 to 4096 (well, a bit less than that, but I think that's a matter of the circuit), but I don't receive the things Teensy is supposed to print to my laptop (it's some data sent to Pure Data).
I tested this with an Arduino UNO and the bytes after analogReadResolution() are being written to the serial line and printed in Pure Data. Is this something known with Teensy?