Show Posts
|
|
Pages: [1]
|
|
2
|
Using Arduino / Programming Questions / WiFi Web Server
|
on: April 22, 2013, 11:42:29 am
|
|
hi i am using WiFi Web Server example the problem i am having is
client.print("<body bgcolor="#00FF00">");
gives this error
wifiServer:87: error: stray '#' in program wifiServer.ino:87:41: error: invalid suffix "FF00" on integer constant wifiServer.ino: In function 'void loop()': wifiServer:87: error: expected `)' before numeric constant
so i am trying to change background color of the web page shouldn't this work? is there another way?
i am using a arduino 2560 and the wifi shield i am trying to set up a web page that monitors water level and temp of my grow room
thanks
devobtch
|
|
|
|
|
4
|
Using Arduino / Programming Questions / Re: fixed point variables?
|
on: February 04, 2013, 04:33:39 pm
|
|
hi guys
i have a similar question how do you limit the amount of digits to the right of the decimal point
temp_f = sht1x.readTemperatureF(); lcd.print("Temperature: "); lcd.print(temp_f, DEC);
prints way to many digits i just want to print 2 digits to the right of decimal point
thanks
devobtch
|
|
|
|
|
6
|
Using Arduino / Programming Questions / Re: I2C not working
|
on: January 27, 2013, 04:39:27 pm
|
|
hi ok i did what you said and used 0023 and it worked thanks know where i can get a 1.03 liquidcrystall_I2C library?
so should i ever put anything in the arduino folder or always use the arduino folder in the documents folder?
thanks again
|
|
|
|
|
7
|
Using Arduino / Programming Questions / Re: I2C not working
|
on: January 27, 2013, 04:21:59 pm
|
|
hi
"You have several issues. First, user downloaded libraries do NOT go in the core library folder. Doing that causes all kinds of issues.
The pde extension is for pre-1.0 versions of the IDE. You appear to be using one with post-1.0. Why?"
ok i read that was where i should put them and i was trying with both 1.03 and 0023 and have same problems so where should LiquidCrystall_I2C go? should i redownload arduino 1.03 and start over?
thanks
devobitch
|
|
|
|
|
8
|
Using Arduino / Programming Questions / Re: I2C not working
|
on: January 27, 2013, 04:03:49 pm
|
hi ok deleted the folders now i get this error compiling In file included from HelloWorld.pde:3: C:\arduino-1.0.3\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:81: error: conflicting return type specified for 'virtual void LiquidCrystal_I2C::write(uint8_t)' C:\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)' heres my email mark_robare@charter.netthanks
|
|
|
|
|
9
|
Using Arduino / Programming Questions / Re: I2C not working
|
on: January 27, 2013, 03:41:22 pm
|
|
hi i renamed the old library and put the 2004LiquidCrystal_I2C.rar (unrared) in the library fold and renamed it to LiquidCrystall_I2C
i tried the example in the example folder and got the same error i am useing arduino 1.03 and tried arduino-0023
devobitch
|
|
|
|
|
12
|
Using Arduino / Programming Questions / I2C not working
|
on: January 27, 2013, 02:30:06 pm
|
|
hi i have a uno v1 with a sensor sheild v4 connected to a ywrobot I2C lcd 16,2 and can't get this simple program to display
#include <Wire.h> #include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x38); // Set the LCD I2C address
#define BACKLIGHT_PIN 13
void setup() {
// Switch on the backlight pinMode ( BACKLIGHT_PIN, OUTPUT ); digitalWrite ( BACKLIGHT_PIN, HIGH ); lcd.begin(16,2); // initialize the lcd
lcd.home (); // go home lcd.print("Hello, ARDUINO "); lcd.setCursor ( 0, 1 ); // go to the next line lcd.print (" WORLD! "); }
void loop() {
}
can anybody see what i am doing wrong?
i also tried a sainsmart 20,4 lcd with no results
devobitch
|
|
|
|
|