Browse Source

Document portrait mode

James Bowman 6 years ago
parent
commit
937cd7d0ba
1 changed files with 8 additions and 0 deletions
  1. 8 0
      README.md

+ 8 - 0
README.md

@@ -40,3 +40,11 @@ There is a writeup here: http://excamera.com/sphinx/article-ili9488.html
 For the GPU select, modify ``#define CS`` at the start of ``transports/wiring.h``
 
 For the microSD select, modify ``#define SD_PIN`` at the start of ``GD2.cpp``
+
+**How do you run in portrait mode?**
+
+After calling ``GD.begin()`` set the orientation like this::
+
+    GD.cmd_setrotate(2);
+
+to enter portrait mode. The argument controls orientation, 0 and 1 are landscape. 2 and 3 are portrait.