Right I think I have just realised why everything is sooooooo slow. We need to go back to the PIC_CAL_I2C file and look at line 308.
Code: Select all
delay_ms(10);
Code: Select all
//delay_ms(10);
Moderator: Benj
Code: Select all
delay_ms(10);
Code: Select all
//delay_ms(10);
Code: Select all
#if (MX_I2C_SW_BAUD < 1)
#define MX_I2C_DELAY delay_us(1);
Code: Select all
//delay_ms(10); //Wait before reusing the I2C BUS
Code: Select all
delay_ms(1); //Wait before reusing the I2C BUS
Code: Select all
delay_ms(2); //Wait before reusing the I2C BUS
Code: Select all
#if (MX_I2C_SW_BAUD < 1)
//#define MX_I2C_DELAY delay_us(1);
#define MX_I2C_DELAY nop();
Code: Select all
#if (MX_I2C_SW_BAUD < 1)
//#define MX_I2C_DELAY delay_us(1);
#define MX_I2C_DELAY nop();nop();
The easiest way to do this is to override one of the fonts in the GLCD base font library. To do this click the View menu and bring up the component debugger window. Tick the Expose full component tree checkbox and this allows you to explore all of the components packaged inside the GLCD component.how would you suggest I go about printing the degree symbol on the display?
Code: Select all
0x36 , 0x49 , 0x49 , 0x49 , 0x36 ,0x06 , 0x49 , 0x49 , 0x29 , 0x1E ,0x00 , 0x6C , 0x6C , 0x00 , 0x00 ,0x00 , 0xEC , 0x6C , 0x00 , 0x00 ,0x08 , 0x14 , 0x22 , 0x41 , 0x00 ,0x24 , 0x24 , 0x24 , 0x24 , 0x24 ,0x00 , 0x41 , 0x22 , 0x14 , 0x08 ,0x02 , 0x01 , 0x59 , 0x09 , 0x06 ,0x3E , 0x41 , 0x5D , 0x55 , 0x1E ,0x7E , 0x09 , 0x09 , 0x09 , 0x7E ,0x7F , 0x49 , 0x49 , 0x49 , 0x36 ,0x3E , 0x41 , 0x41 , 0x41 , 0x22
Code: Select all
0x36 , 0x49 , 0x49 , 0x49 , 0x36 ,0x06 , 0x49 , 0x49 , 0x29 , 0x1E ,0x00 , 0x6C , 0x6C , 0x00 , 0x00 ,0x00 , 0x02 , 0x05 , 0x02 , 0x00 ,0x08 , 0x14 , 0x22 , 0x41 , 0x00 ,0x24 , 0x24 , 0x24 , 0x24 , 0x24 ,0x00 , 0x41 , 0x22 , 0x14 , 0x08 ,0x02 , 0x01 , 0x59 , 0x09 , 0x06 ,0x3E , 0x41 , 0x5D , 0x55 , 0x1E ,0x7E , 0x09 , 0x09 , 0x09 , 0x7E ,0x7F , 0x49 , 0x49 , 0x49 , 0x36 ,0x3E , 0x41 , 0x41 , 0x41 , 0x22
Thank you very much, much appreciated and should allow me to use it as a test bed to sanity check I don't break things in new releases.And you can keep the display I sent you. This works so well that I'm buying plenty more
The issue with drawing a circle is you have to do it using trig functions or using look up tables.What do you think about the circle drawing macro? doable?