hi,
I am a beginner with Teensy. Up to now I was using Arduino with the Arduino IDE.
Now I want to run some code written for Arduino Uno with Teensy 3.2.
Everything is ok with Arduino but compilation for Teensy fails.
The Teensy extensions for Arduino IDE are installed.
For the code:
the compiler reports the error:
In Arduino sketches char is a signed byte, not in Teensy?
NikoTeen
I am a beginner with Teensy. Up to now I was using Arduino with the Arduino IDE.
Now I want to run some code written for Arduino Uno with Teensy 3.2.
Everything is ok with Arduino but compilation for Teensy fails.
The Teensy extensions for Arduino IDE are installed.
For the code:
Code:
bool nextPulse (word width) {
if (state != DONE)
anz_p++;
switch (decode(width)) {
case -1: resetDecoder(); break;
case 1: done(); break;
}
return isDone();
}
Code:
In file included from H:\Arduino\examples\GSM-Tests\WindEmpfSend\WindEmpfSend.ino:30:0:
C:\Users\...\Temp\arduino_build_756235\sketch\OregonDecodeV3_2.h: In member function 'bool OOK_OregonDecodeV3_2::nextPulse(word)':
C:\Users\...\Temp\arduino_build_756235\sketch\OregonDecodeV3_2.h:87:17: warning: case label value is less than minimum value for type
case -1: resetDecoder(); break;
^
NikoTeen