Hey all,
First, I am very new to microcrontrollers and C programming(I have alot of web programming experience).
I wanted to hook up an LCD display to my spark core. I got this from frys: http://osepp.com/products/shield-arduino-compatible/16x2-lcd-display-keypad-shield/
I am trying to get it to work with the LiquidCrystal lib from spark io.
Here is an image of how I hooked everything up, I used this as a guide(http://arduino.cc/en/uploads/Tutorial/LCD_schem.png) -
http://www.mistersaisho.com/lcdHelp.jpg
the top pins from the shield are plugged into the breadboard at the top level. The letters show where it is plugged into my sparkcontroller.
This is my code:
// This #include statement was automatically added by the Spark IDE.
#include "LiquidCrystal/LiquidCrystal.h"
// Make sure to update these to match how you've wired your pins.
// pinout on LCD [RS, EN, D4, D5, D6, D7];
// pin nums LCD [ 4, 6, 11, 12, 13, 14];
// Shield Shield [RS, EN, D4, D5, D6, D7];
// Spark Core [D3, D5, D2, D4, D7, D8];
LiquidCrystal lcd(D0, D1, D2, D3, D4, D5);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16,2);
// Print a message to the LCD.
lcd.print("Hello, Sparky!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}
Does anyone have any suggestions on how to solve?
Thanks!