The more I build and try to improve on the various firmwares I've realised that it's not entirely friendly for new users to edit their firmware for their version of device. In an aim to correct that I have added userconfig.h to the various firmwares.
This is just a little settings file that users can change without fear of harming the main programme.
It allows you to set which screen you are using and in future which startup logo for some screens and maybe other settings.
How to use.
At the moment the userconfig.h looks like this
/////////////////////////////////////////////////////////////////
/* */
/* */
/* Configure your screen settings here */
/* Delete the // of the lines appropriate to your device */
/* */
/* */
/////////////////////////////////////////////////////////////////
//#define SERIALSCREEN 1 /*For Testing purposes only */
//#define LCDSCREEN16x2 1 /*Set if you are using a 1602 LCD screen */
//#define LCD_I2C_ADDR 0x3f /*Set the i2c address of your 1602LCD usually 0x27 or 0x3f*/
//#define OLED1306 1 /*Defines if you are using a 128x64 or 128x32 OLED screen */
//#define OLED1306_1.3 1 /* Use this line as well if you have a 1.3" OLED screen */
//#define P8544 1 /*Set if you are using an 84x48 PCD8544 screen */
//#define LCD_USE_1602_LCD_MODULE 1 /*Not used at the moment */
If you are using a 1602 LCD screen you delete the // from in front of the #define LCDSCREEEN 1602 and the #define LCD_I2C_ADDR settings. You may need to change the 0x3f to 0x27 depending on your screen address.
If you are using an 0.91"/0.96"/1.3" OLED 1306 screen then you should delete the // in front of the #define OLED1306 setting.
If you are using a 1.3" OLED1306 and are missing the first couple of vertical lines on the left of your screen then also delete the // in front of the #define OLED1306_1.3 setting as this should correct the fault.
If you are using the 84*48 "Nokia" type monochrome screen then you should delete the // in front of the #define P8544 setting.
You can download CASDuino 1.19 from here.
You can download TZXDuino 1.10 from here.
This is just a little settings file that users can change without fear of harming the main programme.
It allows you to set which screen you are using and in future which startup logo for some screens and maybe other settings.
How to use.
At the moment the userconfig.h looks like this
/////////////////////////////////////////////////////////////////
/* */
/* */
/* Configure your screen settings here */
/* Delete the // of the lines appropriate to your device */
/* */
/* */
/////////////////////////////////////////////////////////////////
//#define SERIALSCREEN 1 /*For Testing purposes only */
//#define LCDSCREEN16x2 1 /*Set if you are using a 1602 LCD screen */
//#define LCD_I2C_ADDR 0x3f /*Set the i2c address of your 1602LCD usually 0x27 or 0x3f*/
//#define OLED1306 1 /*Defines if you are using a 128x64 or 128x32 OLED screen */
//#define OLED1306_1.3 1 /* Use this line as well if you have a 1.3" OLED screen */
//#define P8544 1 /*Set if you are using an 84x48 PCD8544 screen */
//#define LCD_USE_1602_LCD_MODULE 1 /*Not used at the moment */
If you are using a 1602 LCD screen you delete the // from in front of the #define LCDSCREEEN 1602 and the #define LCD_I2C_ADDR settings. You may need to change the 0x3f to 0x27 depending on your screen address.
If you are using an 0.91"/0.96"/1.3" OLED 1306 screen then you should delete the // in front of the #define OLED1306 setting.
If you are using a 1.3" OLED1306 and are missing the first couple of vertical lines on the left of your screen then also delete the // in front of the #define OLED1306_1.3 setting as this should correct the fault.
If you are using the 84*48 "Nokia" type monochrome screen then you should delete the // in front of the #define P8544 setting.
You can download CASDuino 1.19 from here.
You can download TZXDuino 1.10 from here.
bug into printtext() routine CASDuino_v1.19
ReplyDeleteif using 128x64 oled screen
the routine write 20 chars and not 16 chars
#ifdef OLED1306
setXY(0,l);
sendStr(" ");//16 blanc
setXY(0,l);
sendStr(text);
#endif
result chars missing in menu ... "CASDUINO V1.19" = " UINO V1.19"