Hi All.
I have a proven Sketch which has a calibrate sketch with it which appears to be identical to the LMS303 example in my library.
When I upload the the model boat sketch it throws up the error message
Arduino: 1.8.7 (Windows Store 1.8.15.0) (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"
Calibrate:4:8: error: redefinition of 'LSM303 compass'
LSM303 compass;
^
C:\Users\bigbe\Desktop\FINLAND\scuffy\scuffy.ino:47:8: note: 'LSM303 compass' previously declared here
LSM303 compass; // Output from LSM303
^
C:\Users\bigbe\Desktop\FINLAND\scuffy\Calibrate.ino: In function 'void setup()':
Calibrate:9:6: error: redefinition of 'void setup()'
void setup() {
^
C:\Users\bigbe\Desktop\FINLAND\scuffy\scuffy.ino:103:6: note: 'void setup()' previously defined here
void setup()
^
C:\Users\bigbe\Desktop\FINLAND\scuffy\Calibrate.ino: In function 'void loop()':
Calibrate:16:6: error: redefinition of 'void loop()'
void loop() {
^
C:\Users\bigbe\Desktop\FINLAND\scuffy\scuffy.ino:150:6: note: 'void loop()' previously defined here
void loop()
^
exit status 1
redefinition of 'LSM303 compass'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
If I upload the LMS303 in my example library that works ok.
It looks that both calibrating Sketches look the same
I do not understand the error
If any one can help me I would be grateful.
Regards
Kevin