Rihards Balass / 4DGL-mbed-32PTU
Revision:
15:86bdf382e6f7
Parent:
14:561cb06a2739
Child:
16:cb072eea16e9
--- a/Picaso_4DGL-32PTU_main.cpp	Thu Sep 15 09:48:59 2016 +0000
+++ b/Picaso_4DGL-32PTU_main.cpp	Thu Sep 15 11:52:31 2016 +0000
@@ -103,6 +103,20 @@
     for (i = 0; i < number; i++) writeBYTE(command[i]); // send command to serial port
 }
 
+//******************************************************************************************************
+void PICASO_4DGL :: writeCOMMAND_2(char *command, int number) { // send several BYTES making a command and return an answer
+
+#if DEBUGMODE
+    pc.printf("\n\r");
+    pc.printf("New COMMAND : 0x%02X%02X\n\r", command[0], command[1]);
+#endif
+    int i;
+    freeBUFFER();
+    //index = 0;
+    
+    for (i = 0; i < number; i++) _cmd.putc(command[i]); // send command to serial port
+}
+
 //**************************************************************************
 void PICASO_4DGL :: reset() {  // Reset Screen