rl337 / Arduino

Arduino related code.
4 stars 4 forks source link

Doesn't play nice with RTC #1

Open derfz opened 8 years ago

derfz commented 8 years ago

Arduino UNO Data Logger Shield Sensor Shield

include // The RTC needs this to work

include

include // Include SD card library

include // Include Real Time Clock library

include // Include the library for the Display

include

Error: Arduino: 1.6.9 (Windows 7), Board: "Arduino/Genuino Uno"

In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:44:0:

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:8:19: warning: character constant too long for its type [enabled by default]

 <meta charset='utf-8'>

               ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:26:5: error: stray '\302' in program

 <title>Arduino/SmoothAnalogInput.h at master · rl337/Arduino · GitHub</title>

 ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:26:5: error: stray '\267' in program

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:26:5: error: stray '\302' in program

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:26:5: error: stray '\267' in program

In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:44:0:

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:138:28: warning: missing terminating ' character [enabled by default]

``` ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:138:3: error: missing terminating ' character
^ In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:44:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:438:69: error: stray '#' in program ``` #ifndef SmoothAnalogInput_h ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:442:69: error: stray '#' in program ``` #define SmoothAnalogInput_h ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:69: error: stray '#' in program ``` #include <Arduino.h> ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:460:69: error: stray '#' in program ``` #define SMOOTH_ANALOG_INPUT_SIZE 32 ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:534:70: error: stray '#' in program ``` #endif ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:544:28: warning: missing terminating ' character [enabled by default]
``` ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:544:3: error: missing terminating ' character
^ In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:44:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:5:1: error: expected unqualified-id before '<' token ^ In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:44:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:148: error: expected unqualified-id before '<' token ``` #include <Arduino.h> ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:189: error: expected unqualified-id before '<' token ``` #include <Arduino.h> ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:525:72: error: expected unqualified-id before '<' token ``` }; ^ ``` In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:44:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:575:18: error: expected unqualified-id before numeric constant ```
  • © 2016 GitHub, Inc.
  • ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino: In function 'void GetDateTime()': MyWattmeter:98: error: 'RTC' was not declared in this scope timeNow = RTC.now(); ``` ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino: In function 'void setup()': MyWattmeter:181: error: 'RTC' was not declared in this scope RTC.begin(); ^ exit status 1 'RTC' was not declared in this scope This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. # include # include // The RTC needs this to work # include # include // Include SD card library # include // Include Real Time Clock library # include // Include the library for the Display Error: Arduino: 1.6.9 (Windows 7), Board: "Arduino/Genuino Uno" In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:39:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:8:19: warning: character constant too long for its type [enabled by default] ``` ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:26:5: error: stray '\302' in program ``` Arduino/SmoothAnalogInput.h at master · rl337/Arduino · GitHub ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:26:5: error: stray '\267' in program C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:26:5: error: stray '\302' in program C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:26:5: error: stray '\267' in program In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:39:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:138:28: warning: missing terminating ' character [enabled by default]
    ``` ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:138:3: error: missing terminating ' character
    ^ In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:39:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:438:69: error: stray '#' in program ``` #ifndef SmoothAnalogInput_h ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:442:69: error: stray '#' in program ``` #define SmoothAnalogInput_h ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:69: error: stray '#' in program ``` #include <Arduino.h> ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:460:69: error: stray '#' in program ``` #define SMOOTH_ANALOG_INPUT_SIZE 32 ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:534:70: error: stray '#' in program ``` #endif ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:544:28: warning: missing terminating ' character [enabled by default]
    ``` ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:544:3: error: missing terminating ' character
    ^ In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:39:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:5:1: error: expected unqualified-id before '<' token ^ In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:39:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:148: error: expected unqualified-id before '<' token ``` #include <Arduino.h> ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:189: error: expected unqualified-id before '<' token ``` #include <Arduino.h> ^ ``` C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:525:72: error: expected unqualified-id before '<' token ``` }; ^ ``` In file included from C:\Users\Fred\Documents\Arduino\MySketches\MyWattmeter\MyWattmeter.ino:39:0: C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:575:18: error: expected unqualified-id before numeric constant ```
  • © 2016 GitHub, Inc.
  • ^ ``` exit status 1 Error compiling for board Arduino/Genuino Uno. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
    rl337 commented 8 years ago

    I'm not sure how the HTML in your compile errors got into your files.

    Did you copy and paste the HTML source??

    derfz commented 8 years ago

    I simply clicked on "copy error" in the Arduino IDE and simply pasted the code here. Maybe I should have used the insert code "<>" to post the error.

    Regards

    Fred