Hi guys,
I am using the sim900 sms example on my Mega, I have changed the HWSerail.h to
#define MEGA
#ifndef HWSERIAL_H
#define HWSERIAL_H
#include "Arduino.h"
#include "Streaming.h"
#include <inttypes.h>
and GSM.h to
#ifndef GSM_H
#define GSM_H
//#define UNO
#define MEGA
The error I am getting when I compile it is
/Users/daniel/Documents/Arduino/libraries/SIM900/HWSerial.cpp: In member function 'size_t HWSerial::print(const __FlashStringHelper*)':
/Users/daniel/Documents/Arduino/libraries/SIM900/HWSerial.cpp:63:12: error: 'prog_char' does not name a type
const prog_char *p = (const prog_char *)ifsh;
^
In file included from /Users/daniel/Downloads/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from /Users/daniel/Documents/Arduino/libraries/SIM900/HWSerial.h:6,
from /Users/daniel/Documents/Arduino/libraries/SIM900/HWSerial.cpp:1:
/Users/daniel/Documents/Arduino/libraries/SIM900/HWSerial.cpp:66:43: error: 'p' was not declared in this scope
unsigned char c = pgm_read_byte(p++);
^
Error compiling.
The board I am using
http://www.maplin.co.uk/p/arduino-mega-2560-r3-development-board-n31ku
The shield I am using
http://www.maplin.co.uk/p/sim900-gprsgsm-shield-for-arduino-n95dg
Thank you very much