hArduino-0.7: Control your Arduino board from Haskell.

Stabilityexperimental
Maintainererkokl@gmail.com
Safe HaskellNone

System.Hardware.Arduino.SamplePrograms.LCD

Description

Basic demo of an Hitachi HD44780 LCD

Synopsis

Documentation

hitachi :: LCDControllerSource

Connections for a basic hitachi controller. See http://en.wikipedia.org/wiki/Hitachi_HD44780_LCD_controller for pin layout. For this demo, simply connect the LCD pins to the Arduino as follows:

  • LCD pin 01 to GND
  • LCD pin 02 to +5V
  • LCD pin 03 to a 10K potentiometer's viper
  • LCD pin 04 to Arduino pin 12
  • LCD pin 05 to GND
  • LCD pin 06 to Arduino pin 11
  • LCD pin 11 to Arduino pin 5
  • LCD pin 12 to Arduino pin 4
  • LCD pin 13 to Arduino pin 3
  • LCD pin 14 to Arduino pin 2
  • [If backlight is needed] LCD pin 15 to +5V
  • [If backlight is needed] LCD pin 16 to GND via 220ohm resistor

happy :: [String]Source

The happy glyph. See lcdCreateSymbol for details on how to create new ones.

sad :: [String]Source

The sad glyph. See lcdCreateSymbol for details on how to create new ones.

lcdDemo :: IO ()Source

Access the LCD connected to Arduino, making it show messages we read from the user and demonstrate other LCD control features offered by hArduino.