View attachment MS55xx.hView attachment MS55xx.cppView attachment MS55xx_underwater.ino
Hi, I use atached example with atached library files to read MS5535C pressure sensor. I do not know why but using teensy 3.1 board can not compile the example.
this is the error:
MS55xx_underwater.ino:19:39: warning: character constant too long for its type [enabled by default]
MS55xx_underwater.ino: In function 'void setup()':
MS55xx_underwater.ino:19:47: warning: large integer implicitly truncated to unsigned type [-Woverflow]
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp:60:18: warning: character constant too long for its type [enabled by default]
if (SensorType=='MS5535'){
^
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp: In member function 'void MS55xx::update()':
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp:20:2: error: 'TCCR1B' was not declared in this scope
TCCR1B = (TCCR1B & 0xF8) | 1 ; //generates the MCKL signal
^
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp: In member function 'void MS55xx::setPressureSensorType(char)':
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp:69:8: warning: unused variable 'SensorType' [-Wunused-variable]
char SensorType=PressureSensorType;
^
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp: In member function 'void MS55xx::getCalibrationWord()':
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp:99:2: error: 'TCCR1B' was not declared in this scope
TCCR1B = (TCCR1B & 0xF8) | 1 ; //generates the MCKL signal
^
Error compiling.
Can someone help please,
Igor P
Hi, I use atached example with atached library files to read MS5535C pressure sensor. I do not know why but using teensy 3.1 board can not compile the example.
this is the error:
MS55xx_underwater.ino:19:39: warning: character constant too long for its type [enabled by default]
MS55xx_underwater.ino: In function 'void setup()':
MS55xx_underwater.ino:19:47: warning: large integer implicitly truncated to unsigned type [-Woverflow]
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp:60:18: warning: character constant too long for its type [enabled by default]
if (SensorType=='MS5535'){
^
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp: In member function 'void MS55xx::update()':
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp:20:2: error: 'TCCR1B' was not declared in this scope
TCCR1B = (TCCR1B & 0xF8) | 1 ; //generates the MCKL signal
^
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp: In member function 'void MS55xx::setPressureSensorType(char)':
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp:69:8: warning: unused variable 'SensorType' [-Wunused-variable]
char SensorType=PressureSensorType;
^
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp: In member function 'void MS55xx::getCalibrationWord()':
C:\Documents and Settings\Igor P\My Documents\Arduino\libraries\MS55xx\MS55xx.cpp:99:2: error: 'TCCR1B' was not declared in this scope
TCCR1B = (TCCR1B & 0xF8) | 1 ; //generates the MCKL signal
^
Error compiling.
Can someone help please,
Igor P