Failed to reach end of input expression, likely malformed input
syntax error
This error happens where ever the first oledprint statement is.
I know that the advanced oled functions are only available on modules with 2 meg or more of memory, but I thought that the basic oled functions should still work on the smaller sized ram modules.
oledprint
oledcls
oledsend
I am running ESP Basic 3.0.Alpha 66
thanks
dwight
memclear
cls
oledcls
counter = 0
time.setup(-7,0)
delay 5000
button "Temperature", [gettemp]
button "Exit ", [Exit]
oled.print "hello",0,0
gosub [gettime]
timer 5000, [gettemp]
wait
'
[gettemp]
counter = counter + 1
if counter = 6 then gosub [gettime]
'
curr = temp(0)
tf = curr * 9
tf = tf / 5
tf = tf + 32
oledPRINT tf,0,0
curr = temp(1)
tf = curr * 9
tf = tf / 5
tf = tf + 32
oledPRINT tf,0,2
'
curr = temp(2)
tf = curr * 9
tf = tf / 5
tf = tf + 32
oledPRINT tf,0,4
'
curr = ramfree()
oledprint curr,0,6
curr = flashfree()
oledprint curr,0,7
'
wait
'
[gettime]
counter = 0
bla = time()
dw = mid(bla,1,3) 'dow
mh = mid(bla,5,3) 'month
dt = mid(bla,9,2) 'date
hh = mid(bla,12,2) 'hour
mm = mid(bla,15,2) 'min
ss = mid(bla,18,2) 'sec
yr = mid(bla,21,4) 'year
oledprint dw,8,0
oledprint mh,8,1
oledprint dt,12,1
oledprint yr,8,2
oledprint hh,8,4
oledprint ":",10,4
oledprint mm,11,4
'
return
[Exit]
end