Export to GitHub

arduino-pwm-frequency-library - issue #3

NO PWM.cpp shown when adding to library


Posted on Oct 27, 2014 by Happy Panda

PWM folder (contains) keywords.txt PWM.h utility

PWM_lib_example(contains) PWM_lib_example.ino

PWM_lib_resolution_example(contains) PWM_lib_resolution_example.ino

Header in above sketch show #include <PWM.h> PWM is blue!!! No PWM.cpp Shown

Attempting to compile shows:

PWM_lib_resolution_example.ino: In function 'void setup()': PWM_lib_resolution_example:39: error: 'InitTimersSafe' was not declared in this scope PWM_lib_resolution_example.ino: In function 'void demonstrateFrequencysEffectOnResolution()': PWM_lib_resolution_example:52: error: 'SetPinFrequency' was not declared in this scope PWM_lib_resolution_example:54: error: 'Timer1_GetFrequency' was not declared in this scope

using V5 on a Mac OS Mavericks Arduino 1.0.5

I am a newbie, PWM shows in Contributed and when I click on it nothing happens, I assume that the <PWM.h> should not be blue but browny/red as per normal.

IS this a missing CPP? I have tried V4 and just keep bashing my head, its bleeding

Many thanks for your kind attention

I have even tried this on a Windows * machine, same issues

Comment #1

Posted on Nov 25, 2014 by Happy Wombat

Just copy the files and folder in PWM folder and paste them out of this folder.

Status: New

Labels:
Type-Defect Priority-Medium