Contains necessary classes and functions for ELEC351

/media/uploads/Luka_Danilovic/elec_315_prototype_assembly.jpg

Revision:
4:d463eafbabed
Parent:
3:e84fa53173e6
Child:
5:becb1545229d
diff -r e84fa53173e6 -r d463eafbabed displayMaster/displayMaster.cpp
--- a/displayMaster/displayMaster.cpp	Thu Dec 28 12:14:53 2017 +0000
+++ b/displayMaster/displayMaster.cpp	Thu Dec 28 12:34:20 2017 +0000
@@ -33,7 +33,7 @@
     _enable      = DISABLE;
     Thread::wait(2);                 // Wait since BUSY flag not available yet
     writeChar(0x28, INSTRUCTION);    // Function Set: 4-bit, 2 Line, 5x7 Dots
-    writeChar(0x01, INSTRUCTION);    // Clear Display (also clear DDRAM content)
+    //writeChar(0x01, INSTRUCTION);    // Clear Display (also clear DDRAM content)
     writeChar(0x0C, INSTRUCTION);    // Display = on, Cursor = off
     writeChar(0x06, INSTRUCTION);    // Entry Mode (Auto increment)
     
@@ -64,8 +64,10 @@
     _modeSel     = WRITE;            // WRITE to register
     _commsBus    = (instructions>>4);// Top nibble
     _enable      = ENABLE;           // validate signal
-    busyCheck();
+    Thread::wait(20);
+   // busyCheck();
     _commsBus    = (instructions);   // Bottom nibble
     _enable      = ENABLE;           // validate signal
-    busyCheck();
+   // busyCheck();
+   Thread::wait(20);
 }
\ No newline at end of file