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.

JonnyBritish

Member Since 08 Aug 2010
Offline Last Active Aug 19 2010 03:50 AM
-----

Topics I've Started

Parallax LCD test

15 August 2010 - 05:11 AM

Not rocket science but tonight I hooked up a Parallax 2x16 character LCD and ran the code below to test and it worked.
Here is the LCD - Parallax LCD

And docs on the LCD - http://www.parallax....ialLCD-v2.1.pdf

using System;
using System.Text;
using System.Collections;
using System.IO.Ports;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

namespace ParallaxLCDTest
{
    public class Program
    {
        public static void Main()
        {
            byte[] bytes = Encoding.UTF8.GetBytes("Hello Netduino");

            //instantiate the serial port connection                           
            SerialPort serialPort = new SerialPort("COM1", 2400, Parity.None, 8, StopBits.One);
            serialPort.Open();
            serialPort.Write(bytes, 0, 14);
        }
    }
}


Next thing would be to build a class that can send control characters as well but so far so good. Now I just wish I had bought the 4 line version :D

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.