I have posted two new demos. They are based on Stans good works.
The difference? One is 8bit and one is SPI for the ILI941. The 8bit is a lot faster.
I reposted as the original code had the game buttons ( port defines ) embedded in the main program and it truly took me several hours to figure out why the port from SPI to 8bit was not working. Anyway, I have pulled out the game buttons to the top of the program and I have ensured the game buttons do not inter with the operation of the either the SPI or 8bit configuration.
A great demo and works very nicely. Cheers to Stan.
The credit goes to You Anobium for creating the include drivers for those displays.
Users do appreciate the time it takes to code a library for a device when they try to do it themselves.
The ili9341 is a nice display but if you want the spi version make sure it's 5V logic as using level converters and 3.3V supply the wiring gets messy and prone to errors.
Even more so if using the touch pins, Honest!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As the source values are numeric constants the compiler will do the calcs in the preprocessor. Therefore, completing the maths resulting in a new numeric constant. So, all works as expected.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have posted two new demos. They are based on Stans good works.
The difference? One is 8bit and one is SPI for the ILI941. The 8bit is a lot faster.
I reposted as the original code had the game buttons ( port defines ) embedded in the main program and it truly took me several hours to figure out why the port from SPI to 8bit was not working. Anyway, I have pulled out the game buttons to the top of the program and I have ensured the game buttons do not inter with the operation of the either the SPI or 8bit configuration.
A great demo and works very nicely. Cheers to Stan.
See GitHub here https://github.com/Anobium/Great-Cow-BASIC-Demonstration-Sources/tree/master/GLCD_Solutions/GLCD_Games for the two new files.
The credit goes to You Anobium for creating the include drivers for those displays.
Users do appreciate the time it takes to code a library for a device when they try to do it themselves.
The ili9341 is a nice display but if you want the spi version make sure it's 5V logic as using level converters and 3.3V supply the wiring gets messy and prone to errors.
Even more so if using the touch pins, Honest!
@Anobium. When I looked at this... for nostalgia, I noticed-
I know I wanted to get a negative value to add to a var but 65536 is not a word value and it does not show as an error so what did the compiler do?
As the source values are numeric constants the compiler will do the calcs in the preprocessor. Therefore, completing the maths resulting in a new numeric constant. So, all works as expected.