Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

todotani

Member Since 19 Aug 2010
Offline Last Active Feb 04 2012 06:32 AM
-----

Posts I've Made

In Topic: SPI flash memory issue

27 September 2010 - 07:29 PM

Hi CoolStuff, Thank you for your response. GHI Flash Shield driver worked fine with Netduino! My code (actually port from Arduino driver) called two SPI function for register read like; 1) spi.Write(Status_Resgiter_Read_Command) 2) spi.WriteRead(dummy(0), readBuffer) I fund that GHI code packs 1) and 2) as a single function call like; 3)spi.WriteRead({Status_Resgiter_Read_Command, dummy(0)}, {Status_Resgiter_Read_Command, dummy(0)} ) Status register value is stored in second element (dummy) of command packet. That's say I haven't understand well about usage of NETMF's SPI object. Thank you.

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.

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.