From 3c697c10230eed66b5896e9cb8838aeb680cedcb Mon Sep 17 00:00:00 2001 From: Martin Erzberger Date: Mon, 27 Dec 2021 18:47:51 +0100 Subject: [PATCH] Prepare release --- .github/workflows/pythonpublish.yml | 4 ++-- .github/workflows/pythonpublishprerelease.yml | 4 ++-- CONTRIBUTING.md | 2 +- README.md | 2 +- setup.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index 1add47c..b530ad1 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -8,11 +8,11 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: ref: main - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: '3.x' - name: Install dependencies diff --git a/.github/workflows/pythonpublishprerelease.yml b/.github/workflows/pythonpublishprerelease.yml index eee0cd3..26414d9 100644 --- a/.github/workflows/pythonpublishprerelease.yml +++ b/.github/workflows/pythonpublishprerelease.yml @@ -8,11 +8,11 @@ jobs: deploy-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: ref: develop - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: '3.x' - name: Install dependencies diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1d38b30..0f4ab65 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,7 +15,7 @@ For most of the effects, the order of the LEDs is important. A color swipe throu or a marquee effect only look good if the LEDs are arranged in line with the expectations of the person looking at the effect. For example, if you warp a strip around a Christmas tree, then the effects will look strange: One would expect them to go from top to bottom, or from left to right, and not around the tree. -This is even visible with the small, 25 LED xmas tree from Pi Hut: The rainbow effect just does not look good. To fix this, we would need a lookup table that allows to rearrange the individual LEDs in a flexible manner. Matt Parker from the Youtube channel "Stand-up Maths" did an entire episode about this matter, and he promised to do another one this year (2021). +This is even visible with the small, 25 LED xmas tree from Pi Hut: The rainbow effect just does not look good. To fix this, we would need a lookup table that allows to rearrange the individual LEDs in a flexible manner. ## On SPI handling All that the library needs to do with SPI is write data as quickly as possible. For this, it needs to open the SPI bus, change the bus speed, and then write the data. diff --git a/README.md b/README.md index 9a56734..1c99117 100644 --- a/README.md +++ b/README.md @@ -216,4 +216,4 @@ the value from your application. Check `sample.py` to see how this is done. - 2.3.0 (2019-11-24): Untested fix for SK9822 type LEDs; Fix name space; Update readme. Note: The namespace fix breaks compatibility with the previous version, hence the minor upgrade in the version number. - 2.4.0 (2020-05-28): SPI: Switch from the deprecated Adafruit_GPIO to the Adafruit CircuitPython libraries; Re-test with Raspberry Pi OS 2020-05-27. - 2.4.1 (2020-12-04): Remove global brightness parameter from the constructor; Re-test with Raspberry Pi OS 2020-12-02 (kernel 5.4) and latest Adafruit libraries. Fix default global brightness: The "conservative" value of 31 was actually 100%, because this is a 5 bit value. Also changing the branch names in Github to reflect current standards. -- 2.5.0 (2021-12-26): Add methods get_pixel and get_pixel_rgb, support to use all hardware SPI buses on RPI 4 (by explicit choice between hardware spi and bitbanging), thanks @KAN-PC046! Test with Raspberry Pi OS bullseye and Python 3.9. Add instructions on using a virtual env. Note: The interface changes, so the minor version is getting increased. \ No newline at end of file +- 2.5.0 (2021-12-27): Add methods get_pixel and get_pixel_rgb, support to use all hardware SPI buses on RPI 4 (by explicit choice between hardware spi and bitbanging), thanks @KAN-PC046! Test with Raspberry Pi OS bullseye and Python 3.9. Add instructions on using a virtual env. Note: The interface changes, so the minor version is getting increased. \ No newline at end of file diff --git a/setup.py b/setup.py index 2c0ada3..6ac88ee 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="apa102-pi", - version="2.5.0", + version="2.5.0rc1", author="Martin Erzberger", author_email="martin@erzberger.ch", description="Driver for APA102 LEDs on a Raspberry Pi",