Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Arduino programming help required

Reply
Thread Tools

Arduino programming help required

 
 
anonymous_fz anonymous_fz is offline
Junior Member
Join Date: Oct 2012
Posts: 1
 
      10-31-2012
The following code does not compile in arduino IDE 0022:

Even when the attached file has been put into the libraries folder.

Code:
//Compatible with Arduino IDE 22/23 #include <sunflower.h>     //library #define MoistureSensor 3  // the port moistureSensor connected to sunflower flower; void setup() {   Serial.begin(115200); //Baudrate 115200   flower.Initialization(); //Initialization } void loop() {   flower.SerialSet(MoistureSensor); //get the settings from the PC software and the moisture value   flower.process(); //get the temperature and humidity value   flower.Potentiometer(); //get the watering threshold value   flower.print(); //output data including temperature, humidity, watering threshold value, moisture value.   delay(500); }
The reason is that the members Potentiometer and Serialset are not a part of the sunflower.cpp and sunflower.h.

I have no idea about c++ programming and really need help with introducing these members in the library,

like void potentiometer(){}
The potentiometer is supposed to set the watering threshold level at which the system will stop watering the plants.

and also i would like help in coding so as to control the system and inputs from the "flowers life" software.

Please search ecoduino on a search engine and click the first link for a better understanding of what i have said.
Attached Files
File Type: zip AFWS-basic-sample-code.zip (8.6 KB, 0 views)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
the Arduino language? Ivan Shmakov C Programming 6 03-27-2013 08:51 PM
I need to write Simple JAVA program to read and write from USB serialto use it with Arduino sahm Java 4 10-15-2012 06:24 PM
Help Required for Choosing Programming Language ifti_crazy@yahoo.com Python 40 02-26-2007 10:56 AM
URGENT HELP REQUIRED IN C++ programming... yoyo C++ 2 08-08-2006 04:32 AM
Create a VD with required properties on a required Web Server (Windows Advanced Server 2000 has 3 Web Servers) Just D. ASP .Net 0 03-10-2006 06:02 AM



Advertisments