Compatibility with Arduino 1.0

This commit is contained in:
maniacbug 2011-11-02 21:28:28 -07:00
parent f5c0ba25ee
commit d92ac14f86
9 changed files with 5 additions and 16 deletions

View File

@ -6,7 +6,12 @@
version 2 as published by the Free Software Foundation. version 2 as published by the Free Software Foundation.
*/ */
#if ARDUINO < 100
#include <WProgram.h> #include <WProgram.h>
#else
#include <Arduino.h>
#endif
#include <SPI.h> #include <SPI.h>
#include "nRF24L01.h" #include "nRF24L01.h"
#include "RF24.h" #include "RF24.h"

View File

@ -16,8 +16,6 @@
#ifndef __PRINTF_H__ #ifndef __PRINTF_H__
#define __PRINTF_H__ #define __PRINTF_H__
#include "WProgram.h"
int serial_putc( char c, FILE * ) int serial_putc( char c, FILE * )
{ {
Serial.write( c ); Serial.write( c );

View File

@ -16,8 +16,6 @@
#ifndef __PRINTF_H__ #ifndef __PRINTF_H__
#define __PRINTF_H__ #define __PRINTF_H__
#include "WProgram.h"
int serial_putc( char c, FILE * ) int serial_putc( char c, FILE * )
{ {
Serial.write( c ); Serial.write( c );

View File

@ -16,8 +16,6 @@
#ifndef __PRINTF_H__ #ifndef __PRINTF_H__
#define __PRINTF_H__ #define __PRINTF_H__
#include "WProgram.h"
int serial_putc( char c, FILE * ) int serial_putc( char c, FILE * )
{ {
Serial.write( c ); Serial.write( c );

View File

@ -16,8 +16,6 @@
#ifndef __PRINTF_H__ #ifndef __PRINTF_H__
#define __PRINTF_H__ #define __PRINTF_H__
#include "WProgram.h"
int serial_putc( char c, FILE * ) int serial_putc( char c, FILE * )
{ {
Serial.write( c ); Serial.write( c );

View File

@ -16,8 +16,6 @@
#ifndef __PRINTF_H__ #ifndef __PRINTF_H__
#define __PRINTF_H__ #define __PRINTF_H__
#include "WProgram.h"
int serial_putc( char c, FILE * ) int serial_putc( char c, FILE * )
{ {
Serial.write( c ); Serial.write( c );

View File

@ -16,8 +16,6 @@
#ifndef __PRINTF_H__ #ifndef __PRINTF_H__
#define __PRINTF_H__ #define __PRINTF_H__
#include "WProgram.h"
int serial_putc( char c, FILE * ) int serial_putc( char c, FILE * )
{ {
Serial.write( c ); Serial.write( c );

View File

@ -16,8 +16,6 @@
#ifndef __PRINTF_H__ #ifndef __PRINTF_H__
#define __PRINTF_H__ #define __PRINTF_H__
#include "WProgram.h"
int serial_putc( char c, FILE * ) int serial_putc( char c, FILE * )
{ {
Serial.write( c ); Serial.write( c );

View File

@ -16,8 +16,6 @@
#ifndef __PRINTF_H__ #ifndef __PRINTF_H__
#define __PRINTF_H__ #define __PRINTF_H__
#include "WProgram.h"
int serial_putc( char c, FILE * ) int serial_putc( char c, FILE * )
{ {
Serial.write( c ); Serial.write( c );