chiark / gitweb /
Fixed a minor formatting issue in gpio readall
[wiringPi.git] / wiringPi / lcd.c
index 6826a604bb7bcf77395b7619b276063c6f6f5eae..f123db28af813c6ebedf947b72c3ab14aaf04004 100644 (file)
@@ -75,7 +75,10 @@ struct lcdDataStruct *lcds [MAX_LCDS] ;
 
 static void strobe (struct lcdDataStruct *lcd)
 {
-  digitalWrite (lcd->strbPin, 1) ; delayMicroseconds  (1) ;
+
+// Note timing changes for new version of delayMicroseconds ()
+
+  digitalWrite (lcd->strbPin, 1) ; delayMicroseconds (50) ;
   digitalWrite (lcd->strbPin, 0) ; delayMicroseconds (50) ;
 }
 
@@ -171,6 +174,18 @@ void lcdClear (int fd)
 }
 
 
+/*
+ * lcdSendCommand:
+ *     Send any arbitary command to the display
+ *********************************************************************************
+ */
+
+void lcdSendCommand (int fd, uint8_t command)
+{
+  struct lcdDataStruct *lcd = lcds [fd] ;
+  putCommand (lcd, command) ;
+}
+
 /*
  * lcdPosition:
  *     Update the position of the cursor on the display