[Note] Correct the orientation of the liquid crystal of M5Stick V

Introduction

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.

Slowly ~

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

[Note] Correct the orientation of the liquid crystal of M5Stick V
The day of docker run (note)
Is the probability of precipitation correct?
About the behavior of enable_backprop of Chainer v2
Python Note: The secret role of commas
Note: Prepare the environment of CmdStanPy with docker
[Note] Export the html of the site with python.
I tried to correct the keystone of the image
A note about the python version of python virtualenv
[Note] About the role of underscore "_" in Python
ROS Lecture 119 Correct the color of the camera image