Skip to content

Commit

Permalink
added support for EPD2in13v2 (periph#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
nullsumme authored Jan 8, 2021
1 parent 2dc230a commit 9edd3f4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions epd/epd.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,46 @@ var EPD2in13 = Opts{
},
}

// EPD2in13v2 is the config for the 2.13 inch v2 display.
var EPD2in13v2 = Opts{
W: 128,
H: 250,
FullUpdate: LUT{
0x80, 0x60, 0x40, 0x00, 0x00, 0x00, 0x00,
0x10, 0x60, 0x20, 0x00, 0x00, 0x00, 0x00,
0x80, 0x60, 0x40, 0x00, 0x00, 0x00, 0x00,
0x10, 0x60, 0x20, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

0x03, 0x03, 0x00, 0x00, 0x02,
0x09, 0x09, 0x00, 0x00, 0x02,
0x03, 0x03, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,

0x15, 0x41, 0xA8, 0x32, 0x30, 0x0A,
},
PartialUpdate: LUT{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

0x0A, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,

0x15, 0x41, 0xA8, 0x32, 0x30, 0x0A,
},
}

// EPD1in54 is the config for the 1.54 inch display.
var EPD1in54 = Opts{
W: 200,
Expand Down

0 comments on commit 9edd3f4

Please sign in to comment.