From deb881d573853806ff67aadd0c92336c25d165d3 Mon Sep 17 00:00:00 2001 From: Ace Date: Sun, 3 Feb 2019 16:20:07 +0100 Subject: [PATCH] Delete calibration.py --- Calendar/calibration.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 Calendar/calibration.py diff --git a/Calendar/calibration.py b/Calendar/calibration.py deleted file mode 100644 index 62511e5..0000000 --- a/Calendar/calibration.py +++ /dev/null @@ -1,33 +0,0 @@ -import epd7in5b -from PIL import Image, ImageDraw, ImageFont - -EPD_WIDTH = 640 -EPD_HEIGHT = 384 - -epd = epd7in5b.EPD() - -def calibration(): - for i in range(2): - epd.init() - black = Image.new('1', (EPD_WIDTH, EPD_HEIGHT), 0) - print('calibrating black...') - ImageDraw.Draw(black) - epd.display_frame(epd.get_frame_buffer(black)) - #print(epd.get_frame_buffer(black)) - red = Image.new('L', (EPD_WIDTH, EPD_HEIGHT), 127) - ImageDraw.Draw(red) - print('calibrating red...') - epd.display_frame(epd.get_frame_buffer(red)) - white = Image.new('1', (EPD_WIDTH, EPD_HEIGHT), 255) - ImageDraw.Draw(white) - print('calibrating white...') - epd.display_frame(epd.get_frame_buffer(white)) - epd.sleep() - print('Cycle complete!') - -def main(): - for i in range(1): - calibration() - -if __name__ == '__main__': - main()