I am in the process of trying to initialize this LCD, I have created a project from the example project that comes with the GHI drivers. From there I included both of the display drivers that are given for the display. I am running a domino. This is the line of code that I am stuck on:
I have attached a file of my attempt to try to enter the correct parameters, I think I am on the correct path but cannot input the SPI module correctly yet.
try this simple example.
I thing what you did was add the (CPU.PIn) in the initialize.
That is not necessary!
Here is the right way to do it.
//Initialize the display
FEZ_Extensions.Graphical128x64Display.Initialize(FEZ_Pin.Digital.UEXT3,
FEZ_Pin.Digital.UEXT4,
FEZ_Pin.Digital.UEXT10,
SPI.SPI_module.SPI2);
Following is the full sample code:
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.Hardware;
using GHIElectronics.Graphics.Simple128x64;
namespace MFConsoleApplication1
{
public class Program
{
public static void Main()
{
//Initialize the display
FEZ_Extensions.Graphical128x64Display.Initialize(FEZ_Pin.Digital.UEXT3,
FEZ_Pin.Digital.UEXT4,
FEZ_Pin.Digital.UEXT10,
SPI.SPI_module.SPI2);
// Display FEZ message
FEZ.Extensions.Graphical128x64Display.Print(30, 2, "FEZ is Easy!");
FEZ.Extensions.Graphical128x64Display.Print(8, 4, "Actually, too easy!");
//
GPainter paint = new GPainter();
// Clear the screen, and wait for one sec.
paint.Clear();
int i = 0;
while (true)
{
paint.Print(2, 35, i++.ToString());
FEZ_Extensions.Graphical128x64Display.Flush(paint.vram);
Thread.Sleep(100);
}
}
}
}