So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Winnipeg Bill
#75709 Just got my NodeMCU running this afternoon and am trying to display images. I stuck this code on the front of the digital thermostat example:
----------------------------------------
memclear
SERIALPRINTLN "restart page"
cls
image ("/uploads/bill.jpg")
let curr = 0
let setp = 30
let stat = On
......
------------------------------------
but all I get is a "missing image" tag in my browsers. But if I use the "file manager" I can view the 64 x 64 icon in the NodeMCU file system at /uploads/bill.jpg.

Is this a problem because i have a 1 megabyte flash version of the NodeMCU? Have I got the syntax for referencing a file in the flash memory correct?

Still reading throgh the document file and I wish it had more literal character-for-character examples of what functions calls and statements are supposed to look like.

Google searching is frustrating and hasn't produced any examples of use of the "image" keyword.

Haven't had this much fun for the money since I bought a Kim 1 !

Bill
User avatar
By Winnipeg Bill
#75724 Thanks for the reply! I'm not using an OLED, just trying to display on a browser. I'm hoping there's a more accessible document that outlines the limitations of my 1 megabyte modules for ESPBasic. I suppose I can always "Use the Source" and see what gets left out, but that's a lot of code to look through!

My advice for anyone dipping their toe into NodeMCU is "Make sure the modules you buy have more than 1 megabyte."
User avatar
By Winnipeg Bill
#75739 Thanks for that. I'm not trying to display a .JPG on an OLED, but instead in a Web browser. All I get is the "Missing image" icon in the browsers. I can see the file in the NodeMCU memory with "File manager" so I know it made it that far. I also tried "image button" and although the button works, I get no image.

Is there a compact document that shows all the items left out of the 1 meg ESP8266 BASIC, or must I "use the Source" ? Next time I buy modules I'll look for 4 meg of FLASH!

I'm looking for a big example ESP8266 program that exercises all the functions - maybe with some examples in front of me, I can puzzle out the syntax which is *almost* but not quite like the MS BASICs I've used on various other machines.