This is the article on the 17th day of Inatatsu Adventar.
When I touched the M5StickV, the screen orientation was reversed and I was in trouble, so a memorandum of how to deal with it.
m5stick.py
import lcd
lcd.direction(lcd.YX_LRUD) #Settings such as camera orientation YX
lcd can import lcd which controls (Liquid Crystal Display) and control the direction with direction.
Since M5StickV is inverted when it is the default orientation, it is necessary to specify the orientation.
In conclusion, if you specify lcd.YX_LRUD, the orientation will match the camera.
Each YX_LRUD
--YX: Setting the orientation of the coordinate axes --LR: Left, Right orientation setting --UD: Vertical (Up, Down) orientation setting
Represents.
Recommended Posts