Commit d92ac14f authored by maniacbug's avatar maniacbug

Compatibility with Arduino 1.0

parent f5c0ba25
...@@ -6,7 +6,12 @@ ...@@ -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"
......
...@@ -16,8 +16,6 @@ ...@@ -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 );
......
...@@ -16,8 +16,6 @@ ...@@ -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 );
......
...@@ -16,8 +16,6 @@ ...@@ -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 );
......
...@@ -16,8 +16,6 @@ ...@@ -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 );
......
...@@ -16,8 +16,6 @@ ...@@ -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 );
......
...@@ -16,8 +16,6 @@ ...@@ -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 );
......
...@@ -16,8 +16,6 @@ ...@@ -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 );
......
...@@ -16,8 +16,6 @@ ...@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment