From 945cc2000887d2be110e465babbc57fa00a46cf0 Mon Sep 17 00:00:00 2001 From: "mend-bolt-for-github[bot]" <42819689+mend-bolt-for-github[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 18:10:37 +0000 Subject: [PATCH 1/4] Add .whitesource configuration file --- .whitesource | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .whitesource diff --git a/.whitesource b/.whitesource new file mode 100644 index 0000000..9c7ae90 --- /dev/null +++ b/.whitesource @@ -0,0 +1,14 @@ +{ + "scanSettings": { + "baseBranches": [] + }, + "checkRunSettings": { + "vulnerableCheckRunConclusionLevel": "failure", + "displayMode": "diff", + "useMendCheckNames": true + }, + "issueSettings": { + "minSeverityLevel": "LOW", + "issueType": "DEPENDENCY" + } +} \ No newline at end of file From 91e253cb0b46e327ffe8dbb8591ec8a096e7e0cf Mon Sep 17 00:00:00 2001 From: Alistair James Amabile Date: Thu, 21 Dec 2023 18:36:53 +0000 Subject: [PATCH 2/4] Updated to correct type required by gpiodevice --- examples/all-in-one-enviro-mini.py | 4 ++-- examples/all-in-one-no-pm.py | 4 ++-- examples/all-in-one.py | 4 ++-- examples/combined.py | 4 ++-- examples/lcd.py | 4 ++-- examples/luftdaten.py | 4 ++-- examples/luftdaten_combined.py | 4 ++-- examples/mqtt-all.py | 2 +- examples/noise-amps-at-freqs.py | 4 ++-- examples/noise-profile.py | 4 ++-- examples/weather-and-light.py | 4 ++-- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/examples/all-in-one-enviro-mini.py b/examples/all-in-one-enviro-mini.py index d7a001f..5549ce1 100755 --- a/examples/all-in-one-enviro-mini.py +++ b/examples/all-in-one-enviro-mini.py @@ -37,8 +37,8 @@ st7735 = ST7735.ST7735( port=0, cs=1, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=270, spi_speed_hz=10000000 ) diff --git a/examples/all-in-one-no-pm.py b/examples/all-in-one-no-pm.py index ec1ed1f..82f1061 100755 --- a/examples/all-in-one-no-pm.py +++ b/examples/all-in-one-no-pm.py @@ -36,8 +36,8 @@ st7735 = ST7735.ST7735( port=0, cs=1, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=270, spi_speed_hz=10000000 ) diff --git a/examples/all-in-one.py b/examples/all-in-one.py index ac53999..31bf0c1 100755 --- a/examples/all-in-one.py +++ b/examples/all-in-one.py @@ -41,8 +41,8 @@ st7735 = ST7735.ST7735( port=0, cs=1, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=270, spi_speed_hz=10000000 ) diff --git a/examples/combined.py b/examples/combined.py index 556bcb0..175fd55 100755 --- a/examples/combined.py +++ b/examples/combined.py @@ -43,8 +43,8 @@ st7735 = ST7735.ST7735( port=0, cs=1, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=270, spi_speed_hz=10000000 ) diff --git a/examples/lcd.py b/examples/lcd.py index 10413b9..f868417 100755 --- a/examples/lcd.py +++ b/examples/lcd.py @@ -20,8 +20,8 @@ disp = ST7735.ST7735( port=0, cs=1, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=270, spi_speed_hz=10000000 ) diff --git a/examples/luftdaten.py b/examples/luftdaten.py index a78909f..e761d40 100755 --- a/examples/luftdaten.py +++ b/examples/luftdaten.py @@ -43,8 +43,8 @@ disp = ST7735.ST7735( port=0, cs=1, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=270, spi_speed_hz=10000000 ) diff --git a/examples/luftdaten_combined.py b/examples/luftdaten_combined.py index 1d920db..7c360f8 100644 --- a/examples/luftdaten_combined.py +++ b/examples/luftdaten_combined.py @@ -155,8 +155,8 @@ def check_wifi(): st7735 = ST7735.ST7735( port=0, cs=1, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=270, spi_speed_hz=10000000 ) diff --git a/examples/mqtt-all.py b/examples/mqtt-all.py index 5e564af..e29924a 100755 --- a/examples/mqtt-all.py +++ b/examples/mqtt-all.py @@ -231,7 +231,7 @@ def main(): # Create LCD instance disp = ST7735.ST7735( - port=0, cs=1, dc=9, backlight=12, rotation=270, spi_speed_hz=10000000 + port=0, cs=1, dc="9", backlight="12", rotation=270, spi_speed_hz=10000000 ) # Initialize display diff --git a/examples/noise-amps-at-freqs.py b/examples/noise-amps-at-freqs.py index 4c14c58..e3a5a20 100755 --- a/examples/noise-amps-at-freqs.py +++ b/examples/noise-amps-at-freqs.py @@ -17,8 +17,8 @@ disp = ST7735.ST7735( port=0, cs=ST7735.BG_SPI_CS_FRONT, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=90) disp.begin() diff --git a/examples/noise-profile.py b/examples/noise-profile.py index 4084439..0b5c803 100755 --- a/examples/noise-profile.py +++ b/examples/noise-profile.py @@ -15,8 +15,8 @@ disp = ST7735.ST7735( port=0, cs=ST7735.BG_SPI_CS_FRONT, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=90) disp.begin() diff --git a/examples/weather-and-light.py b/examples/weather-and-light.py index cd8ae96..6ce2ba9 100755 --- a/examples/weather-and-light.py +++ b/examples/weather-and-light.py @@ -294,8 +294,8 @@ def describe_light(light): disp = ST7735.ST7735( port=0, cs=1, - dc=9, - backlight=12, + dc="9", + backlight="12", rotation=270, spi_speed_hz=10000000 ) From 1f66b0d8199c71806f12870b08153e4ee7179fa8 Mon Sep 17 00:00:00 2001 From: Alistair James Amabile Date: Thu, 21 Dec 2023 19:01:47 +0000 Subject: [PATCH 3/4] Updated st7735 import to use lowercase --- examples/all-in-one-enviro-mini.py | 2 +- examples/all-in-one-no-pm.py | 2 +- examples/all-in-one.py | 2 +- examples/combined.py | 2 +- examples/lcd.py | 2 +- examples/luftdaten.py | 2 +- examples/luftdaten_combined.py | 2 +- examples/mqtt-all.py | 2 +- examples/noise-amps-at-freqs.py | 2 +- examples/noise-profile.py | 2 +- examples/weather-and-light.py | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/all-in-one-enviro-mini.py b/examples/all-in-one-enviro-mini.py index 5549ce1..68e6176 100755 --- a/examples/all-in-one-enviro-mini.py +++ b/examples/all-in-one-enviro-mini.py @@ -4,7 +4,7 @@ import colorsys import os import sys -import ST7735 +import st7735 try: # Transitional fix for breaking change in LTR559 from ltr559 import LTR559 diff --git a/examples/all-in-one-no-pm.py b/examples/all-in-one-no-pm.py index 82f1061..5a6906f 100755 --- a/examples/all-in-one-no-pm.py +++ b/examples/all-in-one-no-pm.py @@ -4,7 +4,7 @@ import colorsys import os import sys -import ST7735 +import st7735 try: # Transitional fix for breaking change in LTR559 from ltr559 import LTR559 diff --git a/examples/all-in-one.py b/examples/all-in-one.py index 31bf0c1..32fbd2a 100755 --- a/examples/all-in-one.py +++ b/examples/all-in-one.py @@ -3,7 +3,7 @@ import time import colorsys import sys -import ST7735 +import st7735 try: # Transitional fix for breaking change in LTR559 from ltr559 import LTR559 diff --git a/examples/combined.py b/examples/combined.py index 175fd55..0fc35c5 100755 --- a/examples/combined.py +++ b/examples/combined.py @@ -3,7 +3,7 @@ import time import colorsys import sys -import ST7735 +import st7735 try: # Transitional fix for breaking change in LTR559 from ltr559 import LTR559 diff --git a/examples/lcd.py b/examples/lcd.py index f868417..3c20bb7 100755 --- a/examples/lcd.py +++ b/examples/lcd.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -import ST7735 +import st7735 from PIL import Image, ImageDraw, ImageFont from fonts.ttf import RobotoMedium as UserFont import logging diff --git a/examples/luftdaten.py b/examples/luftdaten.py index e761d40..cc66b5e 100755 --- a/examples/luftdaten.py +++ b/examples/luftdaten.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import requests -import ST7735 +import st7735 import time from bme280 import BME280 from pms5003 import PMS5003, ReadTimeoutError, ChecksumMismatchError diff --git a/examples/luftdaten_combined.py b/examples/luftdaten_combined.py index 7c360f8..2940a79 100644 --- a/examples/luftdaten_combined.py +++ b/examples/luftdaten_combined.py @@ -1,7 +1,7 @@ import logging import sys import requests -import ST7735 +import st7735 import time import colorsys from bme280 import BME280 diff --git a/examples/mqtt-all.py b/examples/mqtt-all.py index e29924a..3a6430c 100755 --- a/examples/mqtt-all.py +++ b/examples/mqtt-all.py @@ -6,7 +6,7 @@ """ import argparse -import ST7735 +import st7735 import time import ssl from bme280 import BME280 diff --git a/examples/noise-amps-at-freqs.py b/examples/noise-amps-at-freqs.py index e3a5a20..5637448 100755 --- a/examples/noise-amps-at-freqs.py +++ b/examples/noise-amps-at-freqs.py @@ -1,4 +1,4 @@ -import ST7735 +import st7735 from PIL import Image, ImageDraw from enviroplus.noise import Noise diff --git a/examples/noise-profile.py b/examples/noise-profile.py index 0b5c803..50ea78f 100755 --- a/examples/noise-profile.py +++ b/examples/noise-profile.py @@ -1,4 +1,4 @@ -import ST7735 +import st7735 from PIL import Image, ImageDraw from enviroplus.noise import Noise diff --git a/examples/weather-and-light.py b/examples/weather-and-light.py index 6ce2ba9..d3523ee 100755 --- a/examples/weather-and-light.py +++ b/examples/weather-and-light.py @@ -10,7 +10,7 @@ from PIL import Image, ImageDraw, ImageFont, ImageFilter from fonts.ttf import RobotoMedium as UserFont -import ST7735 +import st7735 from bme280 import BME280 from ltr559 import LTR559 From 129de96b4bf269aa7ed2847b2821ee1ceca40d82 Mon Sep 17 00:00:00 2001 From: Alistair James Amabile Date: Thu, 21 Dec 2023 19:07:53 +0000 Subject: [PATCH 4/4] Update usage from ST7735.ST7735 to st7735.ST7735 --- examples/all-in-one-enviro-mini.py | 2 +- examples/all-in-one-no-pm.py | 2 +- examples/all-in-one.py | 2 +- examples/combined.py | 2 +- examples/lcd.py | 2 +- examples/luftdaten.py | 2 +- examples/luftdaten_combined.py | 2 +- examples/mqtt-all.py | 2 +- examples/noise-amps-at-freqs.py | 2 +- examples/noise-profile.py | 2 +- examples/weather-and-light.py | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/all-in-one-enviro-mini.py b/examples/all-in-one-enviro-mini.py index 68e6176..784d879 100755 --- a/examples/all-in-one-enviro-mini.py +++ b/examples/all-in-one-enviro-mini.py @@ -34,7 +34,7 @@ bme280 = BME280() # Create ST7735 LCD display class -st7735 = ST7735.ST7735( +st7735 = st7735.ST7735( port=0, cs=1, dc="9", diff --git a/examples/all-in-one-no-pm.py b/examples/all-in-one-no-pm.py index 5a6906f..3f26fca 100755 --- a/examples/all-in-one-no-pm.py +++ b/examples/all-in-one-no-pm.py @@ -33,7 +33,7 @@ bme280 = BME280() # Create ST7735 LCD display class -st7735 = ST7735.ST7735( +st7735 = st7735.ST7735( port=0, cs=1, dc="9", diff --git a/examples/all-in-one.py b/examples/all-in-one.py index 32fbd2a..0e37e6c 100755 --- a/examples/all-in-one.py +++ b/examples/all-in-one.py @@ -38,7 +38,7 @@ pms5003 = PMS5003() # Create ST7735 LCD display class -st7735 = ST7735.ST7735( +st7735 = st7735.ST7735( port=0, cs=1, dc="9", diff --git a/examples/combined.py b/examples/combined.py index 0fc35c5..89f81a8 100755 --- a/examples/combined.py +++ b/examples/combined.py @@ -40,7 +40,7 @@ time.sleep(1.0) # Create ST7735 LCD display class -st7735 = ST7735.ST7735( +st7735 = st7735.ST7735( port=0, cs=1, dc="9", diff --git a/examples/lcd.py b/examples/lcd.py index 3c20bb7..42b62fd 100755 --- a/examples/lcd.py +++ b/examples/lcd.py @@ -17,7 +17,7 @@ """) # Create LCD class instance. -disp = ST7735.ST7735( +disp = st7735.ST7735( port=0, cs=1, dc="9", diff --git a/examples/luftdaten.py b/examples/luftdaten.py index cc66b5e..407616e 100755 --- a/examples/luftdaten.py +++ b/examples/luftdaten.py @@ -40,7 +40,7 @@ bme280 = BME280(i2c_dev=bus) # Create LCD instance -disp = ST7735.ST7735( +disp = st7735.ST7735( port=0, cs=1, dc="9", diff --git a/examples/luftdaten_combined.py b/examples/luftdaten_combined.py index 2940a79..164bccf 100644 --- a/examples/luftdaten_combined.py +++ b/examples/luftdaten_combined.py @@ -152,7 +152,7 @@ def check_wifi(): # Create ST7735 LCD display class -st7735 = ST7735.ST7735( +st7735 = st7735.ST7735( port=0, cs=1, dc="9", diff --git a/examples/mqtt-all.py b/examples/mqtt-all.py index 3a6430c..a60b9cb 100755 --- a/examples/mqtt-all.py +++ b/examples/mqtt-all.py @@ -230,7 +230,7 @@ def main(): bme280 = BME280(i2c_dev=bus) # Create LCD instance - disp = ST7735.ST7735( + disp = st7735.ST7735( port=0, cs=1, dc="9", backlight="12", rotation=270, spi_speed_hz=10000000 ) diff --git a/examples/noise-amps-at-freqs.py b/examples/noise-amps-at-freqs.py index 5637448..569ef5e 100755 --- a/examples/noise-amps-at-freqs.py +++ b/examples/noise-amps-at-freqs.py @@ -14,7 +14,7 @@ noise = Noise() -disp = ST7735.ST7735( +disp = st7735.ST7735( port=0, cs=ST7735.BG_SPI_CS_FRONT, dc="9", diff --git a/examples/noise-profile.py b/examples/noise-profile.py index 50ea78f..fa6363c 100755 --- a/examples/noise-profile.py +++ b/examples/noise-profile.py @@ -12,7 +12,7 @@ noise = Noise() -disp = ST7735.ST7735( +disp = st7735.ST7735( port=0, cs=ST7735.BG_SPI_CS_FRONT, dc="9", diff --git a/examples/weather-and-light.py b/examples/weather-and-light.py index d3523ee..e474c75 100755 --- a/examples/weather-and-light.py +++ b/examples/weather-and-light.py @@ -291,7 +291,7 @@ def describe_light(light): # Initialise the LCD -disp = ST7735.ST7735( +disp = st7735.ST7735( port=0, cs=1, dc="9",