Initialize Rotation Coordinate System (screen.init)
Declaration
prev = screen.init(orientation)
Parameters
- orientation
Integer.
0
= portrait, Home at bottom
1
= landscape, Home at right
2
= landscape, Home at left
3
= portrait, Home at top
Returns
- prev
Integer. The coordinate system used before this call.
Notes
Initialize the coordinate system for color picking and touch events.
The following aliases are equivalent:
screen.init_home_on_bottom() -- Home at bottom
screen.init_home_on_right() -- Home at right
screen.init_home_on_left() -- Home at left
screen.init_home_on_top() -- Home at top
Example
screen.init(0) -- Home at bottom
screen.init(1) -- Home at right
screen.init(2) -- Home at left
screen.init(3) -- Home at top