Fixed indents

This commit is contained in:
Maximilian Giller 2019-02-19 22:02:11 +01:00
parent c2d345dea0
commit a630dd2d54
3 changed files with 10 additions and 6 deletions

View file

@ -70,11 +70,15 @@ class EpdAdapter (DisplayAdapter):
self.init_render() self.init_render()
time.sleep(5) time.sleep(5)
print('Converting image to data and sending it to the display')
print('This may take a while...' + '\n')
prepared_image = design.get_image().rotate(270, expand=1) prepared_image = design.get_image().rotate(270, expand=1)
self.display_frame(self.get_frame_buffer(prepared_image)) self.display_frame(self.get_frame_buffer(prepared_image))
# Powering off the E-Paper until the next loop # Powering off the E-Paper until the next loop
self.sleep() self.sleep()
print('Data sent successfully')
print('Powering off the E-Paper until the next loop' + '\n')
def init_render (self): def init_render (self):
if (self.epd_init() != 0): if (self.epd_init() != 0):