support 7-color inky impression 7.3 detect opts (#107)

pull/110/head
Brian Charous 1 year ago committed by GitHub
parent 6b31587b4f
commit 4c7310e315
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -33,6 +33,7 @@ var (
"Black wHAT (SSD1683)",
"Red wHAT (SSD1683)",
"Yellow wHAT (SSD1683)",
"7-Colour 800x480 (AC073TC1A)",
}
)
@ -97,6 +98,8 @@ func DetectOpts(bus i2c.Bus) (*Opts, error) {
options.Model = IMPRESSION57
case 15, 16:
options.Model = IMPRESSION4
case 20:
options.Model = IMPRESSION73
default:
return nil, fmt.Errorf("failed to get ops: display type %v not supported", data[6])
}

Loading…
Cancel
Save