From ef9aa12e39cd767be8d7930a6a8d2a752db14bca Mon Sep 17 00:00:00 2001 From: BlueFox Date: Sat, 4 Dec 2021 17:10:09 +0000 Subject: [PATCH] Capitalized class names --- RPiGPIOmakertools/drivers/I2C_DEVICE.py | 2 +- RPiGPIOmakertools/drivers/OLED_SH1106.py | 6 +++--- RPiGPIOmakertools/drivers/OLED_SSD1306.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/RPiGPIOmakertools/drivers/I2C_DEVICE.py b/RPiGPIOmakertools/drivers/I2C_DEVICE.py index 55ddd1c..9600515 100644 --- a/RPiGPIOmakertools/drivers/I2C_DEVICE.py +++ b/RPiGPIOmakertools/drivers/I2C_DEVICE.py @@ -26,7 +26,7 @@ SOFTWARE. import smbus2 as smbus -class device(object): +class Device(object): """ Base class for OLED driver classes """ diff --git a/RPiGPIOmakertools/drivers/OLED_SH1106.py b/RPiGPIOmakertools/drivers/OLED_SH1106.py index 35e7e9a..feaa0c3 100644 --- a/RPiGPIOmakertools/drivers/OLED_SH1106.py +++ b/RPiGPIOmakertools/drivers/OLED_SH1106.py @@ -25,10 +25,10 @@ SOFTWARE. import smbus2 as smbus from PIL import Image, ImageDraw -from .I2C_DEVICE import device +from .I2C_DEVICE import Device -class sh1106(device): +class SH1106(Device): """ A device encapsulates the I2C connection (address/port) to the SH1106 OLED display hardware. The init method pumps commands to the display @@ -38,7 +38,7 @@ class sh1106(device): """ def __init__(self, port=1, address=0x3C): - super(sh1106, self).__init__(port, address) + super(SH1106, self).__init__(port, address) self.width = 128 self.height = 64 self.pages = round(self.height / 8) diff --git a/RPiGPIOmakertools/drivers/OLED_SSD1306.py b/RPiGPIOmakertools/drivers/OLED_SSD1306.py index 66e3104..c5ff920 100755 --- a/RPiGPIOmakertools/drivers/OLED_SSD1306.py +++ b/RPiGPIOmakertools/drivers/OLED_SSD1306.py @@ -25,10 +25,10 @@ SOFTWARE. import smbus2 as smbus from PIL import Image, ImageDraw -from .I2C_DEVICE import device +from .I2C_DEVICE import Device -class ssd1306(device): +class SSD1306(Device): """ A device encapsulates the I2C connection (address/port) to the SSD1306 OLED display hardware. The init method pumps commands to the display @@ -38,7 +38,7 @@ class ssd1306(device): """ def __init__(self, port=1, address=0x3C): - super(ssd1306, self).__init__(port, address) + super(SSD1306, self).__init__(port, address) self.width = 128 self.height = 64 self.pages = round(self.height / 8)