implemented display orientation option
This commit is contained in:
parent
f0ab9e4558
commit
ca36269380
@ -44,7 +44,11 @@ class Inkycal:
|
||||
self.supports_colour = self.Settings.Layout.supports_colour
|
||||
|
||||
# Option to flip image upside down
|
||||
self.upside_down = False
|
||||
if self.Settings.display_orientation == 'normal':
|
||||
self.upside_down = False
|
||||
|
||||
elif self.Settings.display_orientation == 'upside_down':
|
||||
self.upside_down = True
|
||||
|
||||
# Option to use epaper image optimisation
|
||||
self.optimize = True
|
||||
@ -122,9 +126,12 @@ class Inkycal:
|
||||
print('You are running inkycal v{}'.format(self._release))
|
||||
|
||||
|
||||
print('Running inkyal test-run for {} ePaper'.format(
|
||||
print('Running inkycal test-run for {} ePaper'.format(
|
||||
self.Settings.model))
|
||||
|
||||
if self.upside_down == True:
|
||||
print('upside-down mode active')
|
||||
|
||||
for module in self.active_modules:
|
||||
generate_im = 'self.{0}.generate_image()'.format(module)
|
||||
print('generating image for {} module...'.format(module), end = '')
|
||||
|
Loading…
Reference in New Issue
Block a user