inky/impression: embed Dev (#103)

Minor refactor to embed Dev directly instead of via a pointer.
pull/109/head
Olivier Mengué #openToWork-Paris 1 year ago committed by GitHub
parent 0187bca55f
commit f009056300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -132,7 +132,7 @@ const (
// DevImpression is a handle to an Inky Impression. // DevImpression is a handle to an Inky Impression.
type DevImpression struct { type DevImpression struct {
*Dev Dev
// Color Palette used to convert images to the 7 color. // Color Palette used to convert images to the 7 color.
Palette color.Palette Palette color.Palette
@ -175,7 +175,7 @@ func NewImpression(p spi.Port, dc gpio.PinOut, reset gpio.PinOut, busy gpio.PinI
} }
d := &DevImpression{ d := &DevImpression{
Dev: &Dev{ Dev: Dev{
c: c, c: c,
maxTxSize: maxTxSize, maxTxSize: maxTxSize,
dc: dc, dc: dc,

Loading…
Cancel
Save