Skip to content

Commit

Permalink
Update MomentaryButton.h
Browse files Browse the repository at this point in the history
Compatibility issue for Arduiono IDE versions 1.0 and higher.
  • Loading branch information
Vladimir Tarasoff committed Dec 9, 2012
1 parent 719e316 commit 74d20f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MomentaryButton.h
@@ -1,6 +1,10 @@
#pragma once

#include "WProgram.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif

// Any button press >= HOLD_THRESHOLD milliseconds is considered a hold,
// not a click.
Expand Down

0 comments on commit 74d20f1

Please sign in to comment.