Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some examples pass four parameters #71

Open
JacobChrist opened this issue Apr 3, 2023 · 0 comments
Open

Some examples pass four parameters #71

JacobChrist opened this issue Apr 3, 2023 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation Lua

Comments

@JacobChrist
Copy link
Member

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)

@JacobChrist JacobChrist added bug Something isn't working documentation Improvements or additions to documentation Lua labels Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation Lua
Projects
None yet
Development

No branches or pull requests

2 participants