PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)
Dependents: YATTT sd_map_test cPong SnowDemo ... more
PokittoLib
Library for programming Pokitto hardware
How to Use
- Import this library to online compiler (see button "import" on the right hand side
- DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
- Change My_settings.h according to your project
- Start coding!
Diff: POKITTO_CORE/PokittoDisk.h
- Revision:
- 66:6281a40d73e6
- Parent:
- 52:c04087025cab
--- a/POKITTO_CORE/PokittoDisk.h Sat Mar 23 19:22:35 2019 +0000 +++ b/POKITTO_CORE/PokittoDisk.h Sat Mar 23 20:03:34 2019 +0000 @@ -64,7 +64,7 @@ // CS ... #define CONNECT_CS P0_7 //p13 #define CLR_SD_CS LPC_GPIO_PORT->CLR[0] = (1 << 7) #define SET_SD_CS LPC_GPIO_PORT->SET[0] = (1 << 7) -#define GET_SD_CS LPC_GPIO_PORT->PIN[0] & (1 << 7) +#define GET_SD_CS ((LPC_GPIO_PORT->PIN[0]) & (1 << 7)) #else // simulated disk driver @@ -104,9 +104,11 @@ extern char* getCurrentFileName (); extern char* getNextFile (char*); extern char* getNextFile (); -extern char* getFirstFile(char*); +extern char* getFirstFile(char* ext); +extern char* getFirstFile(char* ext, char* path); extern char* getFirstFile(); extern char* getFirstDirEntry(); +extern char* getFirstDirEntry(char* path); extern char* getNextDirEntry(); extern int isThisFileOpen(char*); extern int fileOK();