Rihards Balass / 4DGL-mbed-32PTU
Revision:
16:cb072eea16e9
Parent:
15:86bdf382e6f7
Child:
18:829f3e2c064c
--- a/Picaso_4DGL-32PTU.h	Thu Sep 15 11:52:31 2016 +0000
+++ b/Picaso_4DGL-32PTU.h	Thu Sep 15 12:26:58 2016 +0000
@@ -99,6 +99,7 @@
 #define MEDIA_SET_SECTOR    0xFF92
 #define MEDIA_READ_SECTOR   0x0016
 #define MEDIA_WRITE_SECTOR  0x0017
+#define MEDIA_READ_BYTE     0xFF8F
 
 
 // Screen answers
@@ -240,6 +241,7 @@
     short mediaInitResponse(); // response from mediaInit command
     bool readSectorResponse(int); // response from read sector command
     bool writeSectorResponse(int); // response from write sector command
+    bool readByteResponse(int); // response from read sector command
     void reset(); // reset screen
     void baudrate(long); // set baudrate
     void mainDemo(); // play demo with main functions
@@ -293,6 +295,8 @@
     bool media_RdSector(); // read sector
     bool media_WrSector(char *); // write sector
     bool media_WrData(char *, int); // write sector
+    bool media_ReadByte(); // read byte
+    bool media_ReadWord(); // read byte
 
 // Texts Commands
     void setFont(char); // set desired font from embedded fonts