- Netduino Forums
- → Viewing Profile: Posts: todotani
Community Stats
- Group Members
- Active Posts 3
- Profile Views 4383
- Member Title New Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
-
Location
Yokohama, JAPAN
User Tools
Friends
todotani hasn't added any friends yet.
Posts I've Made
In Topic: SPI flash memory issue
27 September 2010 - 07:29 PM
In Topic: Sparkfun LCD
28 August 2010 - 11:40 AM
Ok,
I matched the code from the link EdO referenced to the bus connections shown in the Electronic Bricks Bus documentation. I ended up with this:
LCD_RS = new OutputPort(Pins.GPIO_PIN_D10,false);
LCD_E = new OutputPort(Pins.GPIO_PIN_D12,false);
LCD_D4 = new OutputPort(Pins.GPIO_PIN_D13, false);
LCD_D5 = new OutputPort(Pins.GPIO_PIN_A0, false);
LCD_D6 = new OutputPort(Pins.GPIO_PIN_A1, false);
LCD_D7 = new OutputPort(Pins.GPIO_PIN_A2, false);
When I try the following code:
LCD.Initialize();
while (true)
{
LCD.Print("Hello World");
Thread.Sleep(2000);
LCD.SetCursor(1, 0);
LCD.Print("Hello Netduino");
Thread.Sleep(2000);
LCD.Clear();
Thread.Sleep(2000);
}
I get no response from the LCD. The first row of characters on the LCD is filled with solid blocks, as in the pic attached to the original posting.
Any ideas on how to debug?
As EdO mentioned, R/W pin should be grounded. To do this, try to add the following code;
LCD_RW = new OutputPort(Pins.GPIO_PIN_D11,false);
This feed LCD R/W (pin 11) Low.
- Netduino Forums
- → Viewing Profile: Posts: todotani
- Privacy Policy