Search  English (United States) English (United Kingdom) English (Australia)
Friday, May 18, 2012 ..:: Knowledge ::.. Register  Login
 Knowledge about the AUG AMI DevKit for the .NET Micro Framework Minimize

This page contains a searchable place for knowledge about the AUG AMI DevKit and stuff related to it.


 Print   
 Knowledge base Minimize
SearchForum Home
  Knowledge base  Display  Display stays b...
 Display stays black/white
 
 12/5/2008 9:16:11 AM
Ant
29 posts


Display stays black/white

The OLED display needs to be initialized. Please make sure you

  • add a reference to AUG.AMI.Hardware
  • add using AUG.AMI.Hardware
  • instantiate the OLED_SPI class

The following sample will display a white cross on the screen:

using System;
using Microsoft.SPOT;

using System.Threading;
using AUG.SPOT.Hardware;

namespace DisplayTest
{
    public class Program
    {
        public static void Main()
        {
            OLED_SPI display = new OLED_SPI(true);

            Bitmap view = new Bitmap(480, 272);
            view.DrawLine(Microsoft.SPOT.Presentation.Media.Color.White, 1, 0, 0, 480, 272);
            view.DrawLine(Microsoft.SPOT.Presentation.Media.Color.White, 1, 0, 272, 480, 0);
            view.Flush();

            Thread.Sleep(-1);
        }
    }
}

  Knowledge base  Display  Display stays b...

SearchSearch  Forum HomeForum Home    Print   
Copyright 2012 AUG Elektronik GmbH   Terms Of Use  Privacy Statement