The sketch on my frame2tll v2 teensy arduino was over written by mistake. I am trying to reload the firmware to the device but am experiencing issues as the latest firmware will not compile. I am getting the following error message.
C:\Users\bme-fong\Documents\Arduino\Frame2TTL-master\Firmware\Frame2TTL\Frame2TTL.ino: In function 'void readNewSample()':
C:\Users\bme-fong\Documents\Arduino\Frame2TTL-master\Firmware\Frame2TTL\Frame2TTL.ino:107:17: error: 'A14' was not declared in this scope; did you mean 'A4'?
107 | analogWrite(A14, sensorValue/16); // Map sensorValue from 16-bit to 12-bit range (0-4096) and write to analog output
|
| A4
C:\Users\bme-fong\Documents\Arduino\Frame2TTL-master\Firmware\Frame2TTL\Frame2TTL.ino: In function 'void loop()':
C:\Users\bme-fong\Documents\Arduino\Frame2TTL-master\Firmware\Frame2TTL\Frame2TTL.ino:172:27: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'long unsigned int'} [-Wsign-compare]
172 | for (int i = 0; i < nSamplesToRead; i++) {
| ~~~~~~~~~~~~~~
C:\Users\bme-fong\Documents\Arduino\Frame2TTL-master\Firmware\Frame2TTL\Frame2TTL.ino: In function 'uint16_t autoSetThreshold(byte)':
C:\Users\bme-fong\Documents\Arduino\Frame2TTL-master\Firmware\Frame2TTL\Frame2TTL.ino:207:22: warning: overflow in conversion from 'int' to 'int16_t' {aka 'short int'} changes value from '-65535' to '1' [-Woverflow]
207 | int16_t maxValue = -65535;
| ~~
C:\Users\bme-fong\Documents\Arduino\Frame2TTL-master\Firmware\Frame2TTL\Frame2TTL.ino:210:21: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'long unsigned int'} [-Wsign-compare]
210 | for (int i = 0; i < nSamplesToMeasure; i++) {
| ^~~~~~~~~~~~~~~~
exit status 1
Compilation error: 'A14' was not declared in this scope; did you mean 'A4'?