Copyright | (c) Levent Erkok |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
System.Hardware.Arduino.SamplePrograms.NumGuess
Description
Simple number guessing game on the OSEPP Keyboard shield.
Thanks to David Palmer for lending me his OSEPP shield to play with!
Documentation
osepp :: LCDController Source #
The OSepp LCD Shield is a 16x2 LCD using a Hitachi Controller Furthermore, it has backlight, and 5 buttons. The hook-up is quite straightforward, using our existing Hitachi44780 controller as an example. More information on this shield can be found at:
http://osepp.com/products/shield-arduino-compatible/16x2-lcd-display-keypad-shield/
There are 5 keys on the OSepp shield.
initOSepp :: Arduino (LCD, Bool -> Arduino (), Arduino (Maybe Key)) Source #
Initialize the shield. This is essentially simply registering the lcd with the HArduino library. In addition, we return two values to the user:
- A function to control the back-light
- A function to read (if any) key-pressed