Hi,
I've tried this code on both the uOLED96 module and the uLCD28-pt both with the GFX firmware loaded, they don't have the exact same response, but both aren't doing what I want.
What I'm trying/need to do, is store 6 arrays which I can fill up with different strings. Replacing the string stored in the buffer as necessary. I thought this would be pretty straight forward, but I'm running into a lot of strange results when I try this. Here's a very simplified version of my code :
#platform "GOLDELOX-GFX2"#inherit "4DGL_16bitColours.fnc"#inherit "VisualConst.inc" #constant TEXT_BUFFER_SIZE 4 var pageBuffer0[TEXT_BUFFER_SIZE];var pageBuffer1[TEXT_BUFFER_SIZE];var pageBuffer2[TEXT_BUFFER_SIZE];var pageBuffer3[TEXT_BUFFER_SIZE];var pageBuffer4[TEXT_BUFFER_SIZE];var pageBuffer5[TEXT_BUFFER_SIZE]; var pageTextBuffers[6] := [pageBuffer0,pageBuffer1,pageBuffer2,pageBuffer3,pageBuffer4,pageBuffer5]; func main() gfx_Set(SCREEN_MODE,LANDSCAPE_R); var i:=0; for(i:=0;i
I've tried this code on both the uOLED96 module and the uLCD28-pt both with the GFX firmware loaded, they don't have the exact same response, but both aren't doing what I want.
What I'm trying/need to do, is store 6 arrays which I can fill up with different strings. Replacing the string stored in the buffer as necessary. I thought this would be pretty straight forward, but I'm running into a lot of strange results when I try this. Here's a very simplified version of my code :
#platform "GOLDELOX-GFX2"#inherit "4DGL_16bitColours.fnc"#inherit "VisualConst.inc" #constant TEXT_BUFFER_SIZE 4 var pageBuffer0[TEXT_BUFFER_SIZE];var pageBuffer1[TEXT_BUFFER_SIZE];var pageBuffer2[TEXT_BUFFER_SIZE];var pageBuffer3[TEXT_BUFFER_SIZE];var pageBuffer4[TEXT_BUFFER_SIZE];var pageBuffer5[TEXT_BUFFER_SIZE]; var pageTextBuffers[6] := [pageBuffer0,pageBuffer1,pageBuffer2,pageBuffer3,pageBuffer4,pageBuffer5]; func main() gfx_Set(SCREEN_MODE,LANDSCAPE_R); var i:=0; for(i:=0;i
Comment