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
lcd.cpp@3:538e17979246, 2018-03-23 (annotated)
- Committer:
- bertgereels
- Date:
- Fri Mar 23 13:42:13 2018 +0000
- Revision:
- 3:538e17979246
- Parent:
- 1:b5c534165dfe
Cleared response array before constructing ack.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bertgereels | 0:88d3b9015f7c | 1 | #include "lcd.h" |
bertgereels | 0:88d3b9015f7c | 2 | |
bertgereels | 0:88d3b9015f7c | 3 | namespace ProjectOne{ |
bertgereels | 0:88d3b9015f7c | 4 | |
bertgereels | 0:88d3b9015f7c | 5 | LCD::LCD(PinName firstPin, PinName secondPin, PinName thirdPin, PinName fourthPin, PinName fifthPin) : lcd(firstPin,secondPin,thirdPin,fourthPin,fifthPin){ |
bertgereels | 1:b5c534165dfe | 6 | |
bertgereels | 0:88d3b9015f7c | 7 | } |
bertgereels | 0:88d3b9015f7c | 8 | |
bertgereels | 0:88d3b9015f7c | 9 | void LCD::displayChars(char characters_to_display[]){ |
bertgereels | 0:88d3b9015f7c | 10 | clearLcd(); |
bertgereels | 0:88d3b9015f7c | 11 | lcd.locate(0,3); |
bertgereels | 0:88d3b9015f7c | 12 | lcd.printf(characters_to_display); |
bertgereels | 0:88d3b9015f7c | 13 | } |
bertgereels | 0:88d3b9015f7c | 14 | |
bertgereels | 0:88d3b9015f7c | 15 | void LCD::clearLcd(void){ |
bertgereels | 0:88d3b9015f7c | 16 | lcd.cls(); |
bertgereels | 0:88d3b9015f7c | 17 | } |
bertgereels | 0:88d3b9015f7c | 18 | |
bertgereels | 0:88d3b9015f7c | 19 | |
bertgereels | 0:88d3b9015f7c | 20 | } |