Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't play nice with RTC #1

Open
derfz opened this issue Jun 30, 2016 · 2 comments
Open

Doesn't play nice with RTC #1

derfz opened this issue Jun 30, 2016 · 2 comments

Comments

@derfz
Copy link

derfz commented Jun 30, 2016

Arduino UNO
Data Logger Shield
Sensor Shield

include <Wire.h> // The RTC needs this to work

include <SPI.h>

include <SD.h> // Include SD card library

include <RTClib.h> // Include Real Time Clock library

include <LiquidCrystal_I2C.h> // Include the library for the Display

include <SmoothAnalogInput.h>

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

     <td id="LC1" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">ifndef</span> SmoothAnalogInput_h</td>

                                                                 ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:442:69: error: stray '#' in program

     <td id="LC2" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">SmoothAnalogInput_h</span></td>

                                                                 ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:69: error: stray '#' in program

     <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                 ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:460:69: error: stray '#' in program

     <td id="LC6" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">SMOOTH_ANALOG_INPUT_SIZE</span> <span class="pl-c1">32</span></td>

                                                                 ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:534:70: error: stray '#' in program

     <td id="LC24" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td>

                                                                  ^

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

     <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:189: error: expected unqualified-id before '<' token

     <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                                                         ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:525:72: error: expected unqualified-id before '<' token

     <td id="LC22" class="blob-code blob-code-inner js-file-line">};</td>

                                                                    ^

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

   <li>&copy; 2016 <span title="0.04458s from github-fe128-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>

              ^

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 <SmoothAnalogInput.h>

include <Wire.h> // The RTC needs this to work

include <SPI.h>

include <SD.h> // Include SD card library

include <RTClib.h> // Include Real Time Clock library

include <LiquidCrystal_I2C.h> // 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]

 <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: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

     <td id="LC1" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">ifndef</span> SmoothAnalogInput_h</td>

                                                                 ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:442:69: error: stray '#' in program

     <td id="LC2" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">SmoothAnalogInput_h</span></td>

                                                                 ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:69: error: stray '#' in program

     <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                 ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:460:69: error: stray '#' in program

     <td id="LC6" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">SMOOTH_ANALOG_INPUT_SIZE</span> <span class="pl-c1">32</span></td>

                                                                 ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:534:70: error: stray '#' in program

     <td id="LC24" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td>

                                                                  ^

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

     <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:451:189: error: expected unqualified-id before '<' token

     <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                                                         ^

C:\Users\Fred\Documents\Arduino\MySketches\libraries\SmoothAnalogInput/SmoothAnalogInput.h:525:72: error: expected unqualified-id before '<' token

     <td id="LC22" class="blob-code blob-code-inner js-file-line">};</td>

                                                                    ^

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

   <li>&copy; 2016 <span title="0.04458s from github-fe128-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>

              ^

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
Copy link
Owner

rl337 commented Jul 6, 2016

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

Did you copy and paste the HTML source??

@derfz
Copy link
Author

derfz commented Jul 6, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants