PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Revision:
30:796f9611d2ac
Parent:
28:958b71c4b92a
Child:
35:4f7edccf8ed6
--- a/Pokitto_settings.h	Mon Jan 29 12:29:45 2018 +0000
+++ b/Pokitto_settings.h	Tue Jan 30 10:41:12 2018 +0000
@@ -89,7 +89,7 @@
 
 
 /** CONSOLE **/
-#define POK_USE_CONSOLE 1 //if debugging console is available or not
+#define POK_USE_CONSOLE 0 //if debugging console is available or not
 #define POK_CONSOLE_VISIBLE_AT_STARTUP 1 // whaddaya think ?
 #define POK_CONSOLE_INTERVAL 1000 // interval in ms how often console is drawn
 #if POK_USE_CONSOLE > 0 // this prevents trying to log messages if console is disabled
@@ -193,6 +193,15 @@
 #endif // PROJ_GAMEBUINO
 #endif // PROJ_TILEDMODE
 
+#if PROJ_MODE13 > 0
+    #define PROJ_SCREENMODE MODE13
+    #define POK_COLORDEPTH 8
+    #define POK_STRETCH 0
+    #define POK_FPS 30
+    #define POK_COLORDEPTH 8
+#endif
+
+
 /** SCREEN MODES TABLE -- DO NOT CHANGE THESE **/
 
 #define POK_LCD_W 220 //<- do not change !!
@@ -222,6 +231,8 @@
 #define BUFSIZE_LAMENES             7680
 #define MODE_256_COLOR              12
 #define BUFSIZE_MODE_12              4176 // 72 x 58
+#define MODE13                      13
+#define BUFSIZE_MODE13              9680 // 110*88
 // Tiled modes
 #define MODE_TILED_1BIT             1001
 #define MODE_TILED_8BIT             1002
@@ -329,6 +340,11 @@
     #define LCDWIDTH 160
     #define LCDHEIGHT 144
     #define POK_BITFRAME 2880
+#elif POK_SCREENMODE == MODE13
+    #define POK_SCREENBUFFERSIZE 110*88
+    #define LCDWIDTH 110
+    #define LCDHEIGHT 88
+    #define POK_BITFRAME 110*88
 #else
     #define POK_SCREENBUFFERSIZE 0
 #endif // POK_SCREENMODE
@@ -346,9 +362,9 @@
 
 /** AUDIO **/
 #define POK_AUD_PIN P2_19
-#define POK_AUD_PWM_US 31
-#define POK_AUD_FREQ 11025 //16000 //14285 //24000 // 14285 // 57143 // 8000 //11025// audio update frequency in Hz
-#define POK_CINC_MULTIPLIER 2 // multiplies synth cycle table
+#define POK_AUD_PWM_US 15 //31 //Default value 31
+#define POK_AUD_FREQ 22050 //Valid values: 8000, 11025, 16000, 22050 // audio update frequency in Hz
+//#define POK_CINC_MULTIPLIER 0 // multiplies synth cycle table
 #define POK_STREAMFREQ_HALVE  0  // if true, stream update freq is half audio freq
 #define POK_STREAM_LOOP 1 //master switch
 
@@ -391,3 +407,4 @@
 
 #endif // POKITTO_SETTINGS_H
 
+