Well I tried to get it to work with the 117 lcd kit with no success. I have tried all kinds of solutions and running out of ideas (remember I only have two months of experience).
Here is the code I'm trying to run, as you can see have used the same code as with the LM35DZ sensor (http://forum.moderndevice.com/phpBB3/vi ... ?f=9&t=374)but with some changes.
Code: Select all
#include <SoftwareSerial.h>
#define rxPin 4 // rxPin is immaterial - not used - just make this an unused Arduino pin number
#define txPin 14 // pin 14 is analog pin 0, on a BBB just use a servo cable :), see Reference pinMode
SoftwareSerial mySerial = SoftwareSerial(rxPin, txPin);
#include "Wire.h"
#include <LibTemperature.h>
LibTemperature temp = LibTemperature(0);
// mySerial is connected to the TX pin so mySerial.print commands are used
// one could just as well use the software mySerial library to communicate on another pin
void setup(){
pinMode(txPin, OUTPUT);
mySerial.begin(9600); // 9600 baud is chip comm speed
mySerial.print("?G420"); // set display geometry, 4 x 20 characters in this case
delay(500); // pause to allow LCD EEPROM to program
mySerial.print("?Bff"); // set backlight to ff hex, maximum brightness
delay(1000); // pause to allow LCD EEPROM to program
mySerial.print("?c0"); // set tabs to six spaces
delay(1000); // pause to allow LCD EEPROM to program
mySerial.print("?>4"); // define special characters
delay(300); // delay to allow write to EEPROM
mySerial.print("?f"); // clear the LCD
delay(10);
}
void loop(){
mySerial.print("?>4");
mySerial.print("?x00?y0");
mySerial.print(temp.GetTemperature()); //display temp [b]This line is the problem[/b]
mySerial.print("?x18?y0");
mySerial.print("C");
delay(3000);
}
Error:Call of overloaded'print(float)' is ambiuous
C:\Arduino\arduino-0017\hardware\libraries\SoftwareSerial/SoftwareSerial.h:43: note:
void SoftwareSerial::print(long unsigned int)
Oh, by the way! Thank you for sending me the cable, OUTSTANDING service. Unfortunately it was the wrong one
