Hello, sorry for the thread hijack, if im wrong let me know and ill make a new post
Im having some trouble using this library (first time im including an extern library)
What ive done is to download the PITimer.h and .ccp to a folder named PITimer in the libraries section of Arduino.
Then created a new sketch, pasted the example (
https://github.com/loglow/PITimer) and verify the code.
The problem is that i get all kind of errors:
Arduino: 1.0.5 (Windows XP), Board: "Teensy 3.0"
C:\Archivos de programa\Arduino\hardware\tools\arm-none-eabi\bin\arm-none-eabi-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mcpu=cortex-m4 -DF_CPU=48000000 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -mthumb -nostdlib -D__MK20DX128__ -fno-rtti -felide-constructors -std=gnu++0x -DUSB_SERIAL -DLAYOUT_US_ENGLISH -IC:\Archivos de programa\Arduino\hardware\teensy\cores\teensy3 -IC:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer C:\DOCUME~1\Fran\CONFIG~1\Temp\build139943992695985522.tmp\sketch_oct03a.cpp -o C:\DOCUME~1\Fran\CONFIG~1\Temp\build139943992695985522.tmp\sketch_oct03a.cpp.o
In file included from sketch_oct03a.ino:1:0:
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:7:19: warning: character constant too long for its type [enabled by default]
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:9:9: error: stray '\302' in program
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:9:9: error: stray '\267' in program
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:9:9: error: stray '\302' in program
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:9:9: error: stray '\267' in program
In file included from sketch_oct03a.ino:1:0:
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:50:39: warning: character constant too long for its type [enabled by default]
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:50:56: warning: character constant too long for its type [enabled by default]
In file included from sketch_oct03a.ino:1:0:
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:215:25: warning: character constant too long for its type [enabled by default]
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:221:25: warning: character constant too long for its type [enabled by default]
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:392:17: warning: character constant too long for its type [enabled by default]
In file included from sketch_oct03a.ino:1:0:
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:523:60: warning: multi-character character constant [-Wmultichar]
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:523:70: warning: multi-character character constant [-Wmultichar]
In file included from sketch_oct03a.ino:1:0:
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:4:1: error: expected unqualified-id before '<' token
In file included from sketch_oct03a.ino:1:0:
C:\Documents and Settings\Fran\Mis documentos\Arduino\libraries\PITimer/PITimer.h:567:18: error: expected unqualified-id before numeric constant
sketch_oct03a.ino: In function 'void timerCallback0()':
sketch_oct03a:6: error: 'PITimer0' was not declared in this scope
sketch_oct03a:9: error: 'PITimer1' was not declared in this scope
sketch_oct03a:12: error: 'PITimer2' was not declared in this scope
sketch_oct03a.ino: In function 'void timerCallback1()':
sketch_oct03a:17: error: 'PITimer2' was not declared in this scope
sketch_oct03a.ino: In function 'void setup()':
sketch_oct03a:26: error: 'PITimer1' was not declared in this scope
sketch_oct03a:27: error: 'PITimer2' was not declared in this scope
sketch_oct03a:30: error: 'PITimer0' was not declared in this scope
I dont like large errors messages in forum post, but i want to give as much information as i can.
Can anyone spot my mystake?