Image display - not available in 1 meg version?
Posted: Tue May 01, 2018 8:43 pm
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
----------------------------------------
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