Fix setWindow bug, add CS pin for Clue compatibility. (#180)

* Fix setWindow bug, add CS pin for Clue compatibility.

- corrected bit shift in setWindow that broke high addresses
- added csPin to constructor (will now work with adafruit clue)
- small adjustments and comments to init routine based on working arduino driver

* Update main.go

Updated test example with CS pin.

* Reverting unnecessary (no-effect) change in setRotation.
This commit is contained in:
Jason Striegel
2020-08-12 02:31:43 -04:00
committed by GitHub
parent 06b2023b25
commit 88aeec9f69
3 changed files with 46 additions and 17 deletions
+1
View File
@@ -43,6 +43,7 @@ const (
PWCTR4 = 0xC3
PWCTR5 = 0xC4
VMCTR1 = 0xC5
FRCTRL2 = 0xC6
PWCTR6 = 0xFC
GMCTRP1 = 0xE0
GMCTRN1 = 0xE1