Skip to content

Some examples pass four parameters #71

@JacobChrist

Description

@JacobChrist

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)

Metadata

Metadata

Assignees

Labels

LuabugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions