chipKIT® Development Platform

Inspired by Arduino™

Porting ezLCD3xx Arduino library to mpide (for max32)

Created Sun, 25 Mar 2012 21:35:34 +0000 by brycetron


brycetron

Sun, 25 Mar 2012 21:35:34 +0000

I am trying to use the already compiled ezLCD3xxx arduino libraries, but with mpide (for chipKIT max32).

This is to interface max32 to the ezLCD301.

here are my compiler errors:


ezLCD3xxLIB.cpp: In member function 'int EzLCD3xx::pollLCD(char*, size_t, long unsigned int, char)': ezLCD3xxLIB.cpp:155:16: error: 'class Stream' has no member named 'setTimeout' ezLCD3xxLIB.cpp:156:26: error: 'class Stream' has no member named 'readBytesUntil' ezLCD3xxLIB.cpp: In constructor 'EzLCD3xx_SW::EzLCD3xx_SW(int, int)': ezLCD3xxLIB.cpp:1405:18: error: cannot convert 'SoftwareSerial*' to 'Stream*' in assignment


I replaced the #include <Arduino.h> with #include "WProgram.h", and #include "WConstants.h"

I really dont know what else I need to change to redirect the AVR specific code to mpide.

ANY help at all would be appreciated! (Inlcuding telling me that this is rediculous :-P)