Browse Source

Merge branch 'master' of github.com:jamesbowman/gd2-lib

James Bowman 6 years ago
parent
commit
2dc6eceea8
1 changed files with 12 additions and 4 deletions
  1. 12 4
      README.md

+ 12 - 4
README.md

@@ -12,7 +12,7 @@ To build the release library ``Gameduino2.zip`` run:
 FAQ
 ---
 
-**How do I use GD with an 800x480 display?**
+**How do I use GD with a 800x480 display?**
 
 After calling ``GD.begin()`` you can set the scanout registers for 800x480 like this:
 
@@ -31,12 +31,20 @@ After calling ``GD.begin()`` you can set the scanout registers for 800x480 like
     GD.wr16(vc.REG_PCLK_POL, 0);
     GD.wr16(vc.REG_PCLK, 4);
 
-**How do I use GD with an 320x480 display?**
+**How do I use GD with a 320x480 display?**
 
 There is a writeup here: http://excamera.com/sphinx/article-ili9488.html
 
 **How do I change the select pin assignments?**
 
-For the GPU select, modify ``#define CS`` at the start of ``transports/wiring.h``
+To change the GPU select from pin 8, modify ``#define CS`` at the start of ``transports/wiring.h``
 
-For the microSD select, modify ``#define SD_PIN`` at the start of ``GD2.cpp``
+To change microSD select from pin 9, 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.