Skip to content

Commit

Permalink
lib: Add Arduino < 1.0 compatibility
Browse files Browse the repository at this point in the history
Add Arduino < 1.0 compatibility with right includes depending
on the Arduino version.
  • Loading branch information
QuentinCG committed Jun 29, 2016
1 parent 1215b35 commit 33493a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 1 addition & 2 deletions I2CEEPROM/I2CEEPROM.cpp
Expand Up @@ -5,10 +5,9 @@
* \date 29 June 2016
* \license MIT License (contact me if too restrictive)
* \copyright Copyright (c) 2016 Quentin Comte-Gaz
* \version 1.0
* \version 1.1
*/

#include "Arduino.h"
#include "I2CEEPROM.h"
#include <Wire.h>

Expand Down
10 changes: 9 additions & 1 deletion I2CEEPROM/I2CEEPROM.h
Expand Up @@ -5,13 +5,21 @@
* \date 29 June 2016
* \license MIT License (contact me if too restrictive)
* \copyright Copyright (c) 2016 Quentin Comte-Gaz
* \version 1.0
* \version 1.1
*
* \history
* - v1.0 Main design of the library
* - v1.1 Add Arduino < 1.0 compatibility
*/

#ifndef I2CEEPROM_h
#define I2CEEPROM_h

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

class I2CEEPROM
{
Expand Down

0 comments on commit 33493a8

Please sign in to comment.