GCB seems to be coughing on Ram allocation. I'm using a 18f26k22 which has a ton of Ram (3896 Bytes). Tried using At Location, and same problem. The array size works fine till it gets up to 199, then compiler gives the following error message:
Aborting due to runtime error 6 (out of bounds array access) at line 694 of F:/Robotics/GCBASIC/variables.bi::ALLOCATERAM()
I'm using Steini's SynWrite GCB version (.9 22/9/2013). Tried an old GLCD program that used to work fine with an Atmega168 and 255 byte arrays back in early 2010, and get the same error now too. Here's the start of the program:
Yes Chuck, I need to port the code over to the new glcd.h It shows the great cow bmp skipping across the screen and then reappearing, over and over. Kind of crude. Can't remember the frames per second, but more than fast enough. You can actually go too fast, and the effects look kind of smeared.
To be clear, I don't have an app that does the bmp to glcd array in GCBasic. Came pretty close to making one with Python and the PIL library, just didn't finish it off. Instead I took one of the free online bmp to lcd array converters (bitmap2LCD), and hand transferred that to a couple of tables, then on into an array for fast execution.
I will try and put up some cleaned up code when I get a chance, or you can try the following code which is in "very" rough shape. The cow was made into a jersey cow with a bitmap editor I believe.
GCB seems to be coughing on Ram allocation. I'm using a 18f26k22 which has a ton of Ram (3896 Bytes). Tried using At Location, and same problem. The array size works fine till it gets up to 199, then compiler gives the following error message:
Aborting due to runtime error 6 (out of bounds array access) at line 694 of F:/Robotics/GCBASIC/variables.bi::ALLOCATERAM()
I'm using Steini's SynWrite GCB version (.9 22/9/2013). Tried an old GLCD program that used to work fine with an Atmega168 and 255 byte arrays back in early 2010, and get the same error now too. Here's the start of the program:
Edit: My Bad, changed At location syntax to no brackets. Still same problem.
Last edit: kent_twt4 2014-03-12
Fixed in May 2014 release.
Thanks Evan, this works great when doing bmp to array file conversions, like for animations on a GLCD.
Do you have bmp graphics working on a GLCD?
I tried to create the great cow symbol on my ks0108 GLCD but couldn't get it to work.
Yes Chuck, I need to port the code over to the new glcd.h It shows the great cow bmp skipping across the screen and then reappearing, over and over. Kind of crude. Can't remember the frames per second, but more than fast enough. You can actually go too fast, and the effects look kind of smeared.
To be clear, I don't have an app that does the bmp to glcd array in GCBasic. Came pretty close to making one with Python and the PIL library, just didn't finish it off. Instead I took one of the free online bmp to lcd array converters (bitmap2LCD), and hand transferred that to a couple of tables, then on into an array for fast execution.
I will try and put up some cleaned up code when I get a chance, or you can try the following code which is in "very" rough shape. The cow was made into a jersey cow with a bitmap editor I believe.