Skip to content

Commit

Permalink
quick hack to set rotation of e-paper display
Browse files Browse the repository at this point in the history
TODO: sketch should be able to set rotation

landscape mode on kicad-teensy-epaper badge:
_rotation = 1

portait mode on kicad-teensy-epaper badge:
_rotation = 2

Based on this Adafruit page:
https://learn.adafruit.com/adafruit-gfx-graphics-library/rotating-the-display

kicad-teensy-epaper badge:
https://github.com/pdp7/kicad-teensy-epaper
  • Loading branch information
pdp7 committed Sep 2, 2017
1 parent e8205ba commit f4e2266
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions EPD215.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ EPD215::EPD215( uint32_t cs, uint32_t dc, uint32_t rs, uint32_t bs, int32_t d0,
_bs = bs;
_d0 = d0;
_d1 = d1;
// landscape mode on kicad-teensy-epaper badge
//_rotation = 1;
// portait mode on kicad-teensy-epaper badge
_rotation = 2;
}

void EPD215::softwareSpi( uint8_t data ) {
Expand Down

0 comments on commit f4e2266

Please sign in to comment.