Graphics
Franny
Posts: 127
in Propeller 1
How does one program graphics with the propeller, lets say if you are making a radar with a ping))) ultrasonic sensor and wanted to also have a radar look alike animation program, how is this done?
Comments
If you have enough hub RAM available and a small enough graphics buffer, you can have two buffers, one for display and one for writing into. Each time you update the image, you copy one buffer into the other. This makes for a smoother display in most cases. With only a single buffer, you have to first erase any lines or text that you don't want, then draw the new stuff ... the display flickers ... sometimes it's ok and sometimes it can be very annoying.
I forgot to mention C instead of Spin... that's Spin only right?
If you want to use OSX or Linux, you can use PropellerIDE or BST. PropellerIDE is the current and open source recommended solution. It uses the OpenSpin compiler, which, if you wanted to, you could use with your own text editor. I use BST, since I started before PropellerIDE was a thing and never bothered to switch. BST has been long discontinued and is closed source but (at least in my experience) is been easier to install.
Simple IDE for C, C++
I would still recommend you learn Spin. It really is better than C/C++ for the Propeller, and a large body of Spin libraries is already available for interfacing with many hardware peripherals, much larger than that available for PropGCC.
That's what I got but can you make a radar like graphics on simple IDE?