1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Use Arduino.h on newer versions of the toolchain

This commit is contained in:
Rhys Weatherley 2012-05-25 15:04:49 +10:00
parent bc9f7ecb64
commit 858971da6e
12 changed files with 49 additions and 1 deletions

View File

@ -21,7 +21,11 @@
*/
#include "BlinkLED.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
/**
* \class BlinkLED BlinkLED.h <BlinkLED.h>

View File

@ -21,7 +21,11 @@
*/
#include "ChaseLEDs.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
/**
* \class ChaseLEDs ChaseLEDs.h <ChaseLEDs.h>

View File

@ -21,7 +21,11 @@
*/
#include "SoftI2C.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
/**
* \class SoftI2C SoftI2C.h <SoftI2C.h>

View File

@ -22,7 +22,11 @@
#include "LCD.h"
#include <avr/pgmspace.h>
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
#define LCD_BACK_LIGHT 3 // LCD backlight is on D3
#define LCD_BUTTON_PIN A0 // Button state is on A0

View File

@ -3,7 +3,11 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "WProgram.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
// When the display powers up, it is configured as follows:
//

View File

@ -21,7 +21,11 @@
*/
#include "Melody.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
/**
* \class Melody Melody.h <Melody.h>

View File

@ -23,7 +23,11 @@
#ifndef PowerSave_h
#define PowerSave_h
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
inline void unusedPin(uint8_t pin)
{

View File

@ -22,7 +22,11 @@
#include "DS1307RTC.h"
#include "../I2C/I2CMaster.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
/**
* \class DS1307RTC DS1307RTC.h <DS1307RTC.h>

View File

@ -22,7 +22,11 @@
#include "DS3232RTC.h"
#include "../I2C/I2CMaster.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
/**
* \class DS3232RTC DS3232RTC.h <DS3232RTC.h>

View File

@ -21,7 +21,11 @@
*/
#include "RTC.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
#include <stdlib.h>
#include <string.h>

View File

@ -21,7 +21,11 @@
*/
#include "FrontScreen.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
// Special characters for indicators.
#define IND_BATTERY_EMPTY 0

View File

@ -22,7 +22,11 @@
#include "SetMelody.h"
#include "LowPowerMelody.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
extern LowPowerMelody alarmMelody;
extern int defaultMelodyNotes[5];