@ Sejay, I’m seeing similar results to you. On Hydra (Socket 4) and Cerberus (Socket 6), I get a white or black screen only, no images.
On Spider (Socket 6), I get my first image to display, but then get a black box instead of the second 100x100 image when it gets called.
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
namespace N18Test
{
public partial class Program
{
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
// Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
Debug.Print("Program Started");
GTM.GHIElectronics.Display_N18 display_N18 = new GTM.GHIElectronics.Display_N18(6);
display_N18.Initialize(4000);
display_N18.EnableBacklight(true);
// Usage example #1. Passing a Bitmap to the driver.
Bitmap picture = Resources.GetBitmap(Resources.BitmapResources.N18TestImage);
display_N18.DrawBitmap(picture);
Thread.Sleep(3000);
// Usage example #2. Passing raw bitmap information to the driver, placing it at a certain location.
byte[] newRender = new byte[100 * 100 * 2];
picture = Resources.GetBitmap(Resources.BitmapResources.N18TestImage_100x100);
Array.Copy(newRender, picture.GetBitmap(), newRender.Length);
display_N18.DrawBitmapRawData(newRender, 0, 0, 100, 100);
// Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
Debug.Print("Program Finished");
}
}
}
Images are here (since the forum won’t let me attach BMPs or ZIP for some reason):
http://stevepresley.net/Media/Default/ImageGalleries/N18TestImage.bmp
http://stevepresley.net/Media/Default/ImageGalleries/N18TestImage_100x100.bmp