Part One of my Project Course. Implementation of simple I/O and a custom defined protocol over UDP/IP.

Dependencies:   C12832 LM75B mbed EthernetInterface mbed-rtos

Committer:
bertgereels
Date:
Mon Mar 19 11:32:54 2018 +0000
Revision:
2:6bfe732ba6bc
Parent:
1:b5c534165dfe
Project is now fully functional.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bertgereels 0:88d3b9015f7c 1 #include "mbed.h"
bertgereels 0:88d3b9015f7c 2 #include "C12832.h"
bertgereels 0:88d3b9015f7c 3 #pragma once
bertgereels 0:88d3b9015f7c 4
bertgereels 0:88d3b9015f7c 5 namespace ProjectOne{
bertgereels 0:88d3b9015f7c 6
bertgereels 0:88d3b9015f7c 7 class LCD{
bertgereels 0:88d3b9015f7c 8 public:
bertgereels 2:6bfe732ba6bc 9 /*
bertgereels 2:6bfe732ba6bc 10 * Constructor for LCD class.
bertgereels 2:6bfe732ba6bc 11 *
bertgereels 2:6bfe732ba6bc 12 @param The pins used to controll the LCD on the application board.
bertgereels 2:6bfe732ba6bc 13 @return Nothing.
bertgereels 2:6bfe732ba6bc 14 */
bertgereels 0:88d3b9015f7c 15 LCD(PinName mosi=p5, PinName sck=p7, PinName reset=p6, PinName a0=p8, PinName ncs=p11);
bertgereels 2:6bfe732ba6bc 16
bertgereels 2:6bfe732ba6bc 17 /*
bertgereels 2:6bfe732ba6bc 18 * Method that displays chars on the LCD.
bertgereels 2:6bfe732ba6bc 19 *
bertgereels 2:6bfe732ba6bc 20 @param Char array containing the characters to display.
bertgereels 2:6bfe732ba6bc 21 @return Nothing.
bertgereels 2:6bfe732ba6bc 22 */
bertgereels 0:88d3b9015f7c 23 void displayChars(char characters_to_display[]);
bertgereels 2:6bfe732ba6bc 24
bertgereels 2:6bfe732ba6bc 25 /*
bertgereels 2:6bfe732ba6bc 26 * Method that clears everything on the LCD.
bertgereels 2:6bfe732ba6bc 27 *
bertgereels 2:6bfe732ba6bc 28 @param Nothing.
bertgereels 2:6bfe732ba6bc 29 @return Nothing.
bertgereels 2:6bfe732ba6bc 30 */
bertgereels 1:b5c534165dfe 31 void clearLcd(void);
bertgereels 0:88d3b9015f7c 32
bertgereels 0:88d3b9015f7c 33 private:
bertgereels 0:88d3b9015f7c 34 C12832 lcd;
bertgereels 0:88d3b9015f7c 35 };
bertgereels 0:88d3b9015f7c 36
bertgereels 0:88d3b9015f7c 37 };