earthlcd / ezLCD-5x

Public Repository for ezLCD-5035-RT release files system, firmware and issue reporting
https://earthlcd.com/products/ezlcd-5x?_pos=1&_sid=0927d2260&_ss=r
0 stars 1 forks source link

Some examples pass four parameters #71

Open JacobChrist opened 1 year ago

JacobChrist commented 1 year ago

Describe the issue Some examples pass four parameters to the ez.SetXY() but the third and fourth parameter are not documented in the ezLCD-5x LUA API Manual 082922 image

    ---- gasguage.lua 
    ez.Cls(0,0,0)
    delay  = 100    -- set frame delay in milliseconds
    for loop = 1,5,1 -- show it a 10 times
    do
        for image = 20,49,1  -- 0,3 does bmp files 4,7 does jpg as set in config.txt
        do
            ez.SetXY(0,0,0,0)   -- set graphic start location
            ez.PutPictNo(image) -- draw image n (can be bmp or jpg) jpg will be much faster
            ez.Wait_ms(delay)   -- delay display of next frame
            image = image + 1
        end
        for image = 49,20,-1  -- 0,3 does bmp files 4,7 does jpg as set in config.txt
        do
                ez.SetXY(0,0,0,0)   -- set graphic start location
                ez.PutPictNo(image) -- draw image n (can be bmp or jpg) jpg will be much faster
                ez.Wait_ms(delay)   -- delay display of next frame
                image = image + 1
        end
    end

We should fix the manual or the example code (autoexec.lua)