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