|
Forum Index : Microcontroller and PC projects : Photo Viewer
| Author | Message | ||||
| detonat3 Newbie Joined: 24/12/2018 Location: AustraliaPosts: 7 |
Hi all, I'm just wondering if anyone can help me, I am only new to programming and I'm trying to create a photo viewer using a Micromite Plus LCD Backpack. Is there already a thread on this or is someone able to direct me to somewhere I can find the code to do this? |
||||
Grogster![]() Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9754 |
Hello and welcome. ![]() If you happen to use the Micromite Plus, the MicroMite Extreme(MMX), or the ARM-mite, most of the work is done for you. ![]() See the LOAD IMAGE command, page 54 of the advanced manual for the MM+ series of chips. The image must be a BMP(bitmap), but it can be a true-colour 24-bit BMP file, you just need to have the image on the SD card. Done. ![]() Smoke makes things work. When the smoke gets out, it stops! |
||||
| detonat3 Newbie Joined: 24/12/2018 Location: AustraliaPosts: 7 |
Thanks Grogster, I'm almost there now but I'm getting a syntax error. Is there a typo in the manual? Thanks |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
There is no typo. The command is: LOAD IMAGE filename$ Where filename$ is a string expression, variable or constant. If you are using a string constant for the file name it should be surrounded by double quotes. For example: LOAD IMAGE "TIGER.BMP" I bet that is your problem. You should post your code, then we could spot what you are doing wrong. Geoff Graham - http://geoffg.net |
||||
| detonat3 Newbie Joined: 24/12/2018 Location: AustraliaPosts: 7 |
OK at one point in the manual it shows LOAD IMAGE file$ [, x, y] I was trying to include the x and y section but it turns out I don't need it. |
||||
Grogster![]() Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9754 |
Yes, that does catch a few newcomers. The square brackets indicate an optional parameter for any MMBASIC command, so if you don't need to specify them, don't. ![]() Smoke makes things work. When the smoke gets out, it stops! |
||||
| detonat3 Newbie Joined: 24/12/2018 Location: AustraliaPosts: 7 |
Great, thanks for the help |
||||
| subalib Newbie Joined: 07/02/2019 Location: AustraliaPosts: 11 |
i |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |