Merge pull request #3 from opteeks/opteeks-waveshare29inch
Add support for Waveshare 2.9inch display
This commit is contained in:
commit
1c9a25d22a
@ -21,7 +21,6 @@ def display_for(config):
|
|||||||
if config['ui']['display']['type'] == 'lcdhat':
|
if config['ui']['display']['type'] == 'lcdhat':
|
||||||
return LcdHat(config)
|
return LcdHat(config)
|
||||||
|
|
||||||
|
|
||||||
elif config['ui']['display']['type'] == 'waveshare_1':
|
elif config['ui']['display']['type'] == 'waveshare_1':
|
||||||
return WaveshareV1(config)
|
return WaveshareV1(config)
|
||||||
|
|
||||||
@ -29,4 +28,8 @@ def display_for(config):
|
|||||||
return WaveshareV2(config)
|
return WaveshareV2(config)
|
||||||
|
|
||||||
elif config['ui']['display']['type'] == 'waveshare27inch':
|
elif config['ui']['display']['type'] == 'waveshare27inch':
|
||||||
return Waveshare27inch(config)
|
return Waveshare27inch(config)
|
||||||
|
|
||||||
|
elif config['ui']['display']['type'] == 'waveshare29inch':
|
||||||
|
return Waveshare29inch(config)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user