Updated libraries to be Arduino 1.0 compatible

This commit is contained in:
Will Bradley 2012-08-16 23:23:38 -07:00
parent f8efa16725
commit 97d1534066
3 changed files with 15 additions and 3 deletions

View File

@ -9,7 +9,11 @@
#define _Wire_H_ #define _Wire_H_
#endif #endif
#include <WProgram.h> #if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#define DS1307_I2C_ADDRESS 0x68 #define DS1307_I2C_ADDRESS 0x68

View File

@ -2,7 +2,11 @@
#define _PCATTACH_H_ #define _PCATTACH_H_
#endif #endif
#include <WProgram.h> #if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#define uint_8 byte #define uint_8 byte
class PCATTACH { class PCATTACH {

View File

@ -2,7 +2,11 @@
#define _WIEGAND26_H_ #define _WIEGAND26_H_
#endif #endif
#include <WProgram.h> #if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
class WIEGAND26 { class WIEGAND26 {
public: public: