From 3301ab26074765b9e983160eca74a0355a20ec2a Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:03:57 +0100 Subject: [PATCH 01/38] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index a0538e4..56f62f8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ [![formatting: lint](https://github.com/matthias-bs/MicroPython-ADC_Cal/actions/workflows/ci.yml/badge.svg)](https://github.com/matthias-bs/MicroPython-ADC_Cal/actions/workflows/ci.yml) [![GitHub release](https://img.shields.io/github/release/matthias-bs/MicroPython-ADC_Cal?maxAge=3600)](https://github.com/matthias-bs/MicroPython-ADC_Cal/releases) -[![License: GPLv3](https://img.shields.io/badge/license-GPLv3-green)](https://github.com/matthias-bs/MicroPython-ADC_Cal/blob/main/LICENSE) # MicroPython-ADC_Cal **MicroPython ESP32 library for calibrated on-chip ADC conversion** From 255f409a0d5bb60816b8cf0a0d5d45db48ac2e4d Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:05:00 +0100 Subject: [PATCH 02/38] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 56f62f8..404a00a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![formatting: lint](https://github.com/matthias-bs/MicroPython-ADC_Cal/actions/workflows/ci.yml/badge.svg)](https://github.com/matthias-bs/MicroPython-ADC_Cal/actions/workflows/ci.yml) +[![formatting: lint](https://github.com/matthias-bs/MicroPython-ADC_Cal/actions/workflows/code-formatting.yml/badge.svg)](https://github.com/matthias-bs/MicroPython-ADC_Cal/actions/workflows/ci.yml) [![GitHub release](https://img.shields.io/github/release/matthias-bs/MicroPython-ADC_Cal?maxAge=3600)](https://github.com/matthias-bs/MicroPython-ADC_Cal/releases) # MicroPython-ADC_Cal From fd026b0b1031f5623db4d32aa50e1729c5bbe6fc Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:15:50 +0100 Subject: [PATCH 03/38] Create README.txt --- tools/README.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/README.txt diff --git a/tools/README.txt b/tools/README.txt new file mode 100644 index 0000000..f082162 --- /dev/null +++ b/tools/README.txt @@ -0,0 +1,8 @@ +"Black" is used for MicroPython code style ckecking: +https://github.com/psf/black + +"uncrustify" is NOT used in this project, thus uncrustify.cfg wil not be used! + + MicroPython-ADC_Cal/.github/workflows/code-formatting.yml calls ci.sh, + which in turn executes codeformat.py, which will execute black.py. + From f9fe64389f8399f95e3e1a8d1eb5b243fb912a40 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:16:51 +0100 Subject: [PATCH 04/38] Update codeformat.py --- tools/codeformat.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/codeformat.py b/tools/codeformat.py index 47b12df..63c9c59 100644 --- a/tools/codeformat.py +++ b/tools/codeformat.py @@ -46,7 +46,6 @@ TOP = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) UNCRUSTIFY_CFG = os.path.join(TOP, "tools/uncrustify.cfg") -print("UNCRUSTIFY_CFG: ", UNCRUSTIFY_CFG) C_EXTS = ( ".c", From 638d2c3d7a8b7fad65cb0faaf2118d347dea5bbf Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:21:54 +0100 Subject: [PATCH 05/38] Create ports_esp32.yml --- .github/workflows/ports_esp32.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ports_esp32.yml diff --git a/.github/workflows/ports_esp32.yml b/.github/workflows/ports_esp32.yml new file mode 100644 index 0000000..8850e69 --- /dev/null +++ b/.github/workflows/ports_esp32.yml @@ -0,0 +1,21 @@ +name: esp32 port + +on: + push: + pull_request: + paths: + - '.' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build_idf44: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - name: Install packages + run: source tools/ci.sh && ci_esp32_idf44_setup + - name: Build + run: source tools/ci.sh && ci_esp32_build From fceb7a61ea839d79f1d66e53a448dd7daf380825 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:23:40 +0100 Subject: [PATCH 06/38] Update ports_esp32.yml --- .github/workflows/ports_esp32.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ports_esp32.yml b/.github/workflows/ports_esp32.yml index 8850e69..c80d81c 100644 --- a/.github/workflows/ports_esp32.yml +++ b/.github/workflows/ports_esp32.yml @@ -4,6 +4,7 @@ on: push: pull_request: paths: + - 'tools/**' - '.' concurrency: From 3362aea231316ebc5fb5ec45d104feff4b78b056 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:30:24 +0100 Subject: [PATCH 07/38] Delete ports_esp32.yml --- .github/workflows/ports_esp32.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflows/ports_esp32.yml diff --git a/.github/workflows/ports_esp32.yml b/.github/workflows/ports_esp32.yml deleted file mode 100644 index c80d81c..0000000 --- a/.github/workflows/ports_esp32.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: esp32 port - -on: - push: - pull_request: - paths: - - 'tools/**' - - '.' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build_idf44: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v3 - - name: Install packages - run: source tools/ci.sh && ci_esp32_idf44_setup - - name: Build - run: source tools/ci.sh && ci_esp32_build From 49f2c0a50c3e8874bc87e3267afb187df87910b6 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:32:53 +0100 Subject: [PATCH 08/38] Create build.yml --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b1ad120 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - name: Setup environment + run: source tools/ci.sh && ci_build_packages_setup + #- name: Check manifest files + # run: source tools/ci.sh && ci_build_packages_check_manifest + #- name: Compile package index + # run: source tools/ci.sh && ci_build_packages_compile_index From 7e355a4e5edad08804753be2afe0147334881364 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:38:01 +0100 Subject: [PATCH 09/38] Create manifest.py --- manifest.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 manifest.py diff --git a/manifest.py b/manifest.py new file mode 100644 index 0000000..77064e7 --- /dev/null +++ b/manifest.py @@ -0,0 +1 @@ +module("adc1_cal.py", opt=3) From af7867bb8441171c011e785fb426c3a9bec10e9f Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:38:42 +0100 Subject: [PATCH 10/38] Update build.yml --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1ad120..d7445f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/setup-python@v4 - name: Setup environment run: source tools/ci.sh && ci_build_packages_setup - #- name: Check manifest files - # run: source tools/ci.sh && ci_build_packages_check_manifest - #- name: Compile package index - # run: source tools/ci.sh && ci_build_packages_compile_index + - name: Check manifest files + run: source tools/ci.sh && ci_build_packages_check_manifest + - name: Compile package index + run: source tools/ci.sh && ci_build_packages_compile_index From 84c6052e0d5c4af0e9e4e22163458bcf6580ca7f Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:43:53 +0100 Subject: [PATCH 11/38] Update ci.sh --- tools/ci.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ci.sh b/tools/ci.sh index d0dafbc..b135892 100644 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -27,6 +27,7 @@ function ci_build_packages_setup { # check the required programs run /tmp/micropython/mpy-cross/build/mpy-cross --version python3 /tmp/micropython/tools/manifestfile.py --help + tmp/micropython/mpy-cross/build/mpy-cross adc1_cal.py } function ci_build_packages_check_manifest { From c493dc0c1d7a7ba1701aab4b498436dd80b39537 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:46:20 +0100 Subject: [PATCH 12/38] Update ci.sh --- tools/ci.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ci.sh b/tools/ci.sh index b135892..5994067 100644 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -27,6 +27,8 @@ function ci_build_packages_setup { # check the required programs run /tmp/micropython/mpy-cross/build/mpy-cross --version python3 /tmp/micropython/tools/manifestfile.py --help + ls tmp/micropython/mpy-cross/ + ls tmp/micropython/mpy-cross/build tmp/micropython/mpy-cross/build/mpy-cross adc1_cal.py } From b969a5fea6b531d4c4831d4bfe9fa8884c1cb899 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:48:41 +0100 Subject: [PATCH 13/38] Update ci.sh --- tools/ci.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ci.sh b/tools/ci.sh index 5994067..e7806d0 100644 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -27,6 +27,7 @@ function ci_build_packages_setup { # check the required programs run /tmp/micropython/mpy-cross/build/mpy-cross --version python3 /tmp/micropython/tools/manifestfile.py --help + ls tmp/micropython ls tmp/micropython/mpy-cross/ ls tmp/micropython/mpy-cross/build tmp/micropython/mpy-cross/build/mpy-cross adc1_cal.py From 66d54f5c7d111ca8f87c6a32ef4b4ebc42f94e79 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:50:14 +0100 Subject: [PATCH 14/38] Update ci.sh --- tools/ci.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ci.sh b/tools/ci.sh index e7806d0..e39110c 100644 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -27,6 +27,8 @@ function ci_build_packages_setup { # check the required programs run /tmp/micropython/mpy-cross/build/mpy-cross --version python3 /tmp/micropython/tools/manifestfile.py --help + pwd + ls ls tmp/micropython ls tmp/micropython/mpy-cross/ ls tmp/micropython/mpy-cross/build From 9a329c4c87ef50397d5ca44361c006877fb2c76c Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:52:01 +0100 Subject: [PATCH 15/38] Update ci.sh --- tools/ci.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ci.sh b/tools/ci.sh index e39110c..edb4ee4 100644 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -29,6 +29,8 @@ function ci_build_packages_setup { python3 /tmp/micropython/tools/manifestfile.py --help pwd ls + ls /home/runner/work/MicroPython-ADC_Cal/ + ls /home/runner/work ls tmp/micropython ls tmp/micropython/mpy-cross/ ls tmp/micropython/mpy-cross/build From d5516919a81aa2a0eba0d0a59533f2015d8b73ce Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:55:38 +0100 Subject: [PATCH 16/38] Update ci.sh --- tools/ci.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/ci.sh b/tools/ci.sh index edb4ee4..e941ebf 100644 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -31,9 +31,9 @@ function ci_build_packages_setup { ls ls /home/runner/work/MicroPython-ADC_Cal/ ls /home/runner/work - ls tmp/micropython - ls tmp/micropython/mpy-cross/ - ls tmp/micropython/mpy-cross/build + ls /tmp/micropython + ls /tmp/micropython/mpy-cross/ + ls /tmp/micropython/mpy-cross/build tmp/micropython/mpy-cross/build/mpy-cross adc1_cal.py } From 5404cd099d765680e79c5ee098d65c4118483fbc Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:57:07 +0100 Subject: [PATCH 17/38] Update ci.sh --- tools/ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci.sh b/tools/ci.sh index e941ebf..ff4cf73 100644 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -34,7 +34,7 @@ function ci_build_packages_setup { ls /tmp/micropython ls /tmp/micropython/mpy-cross/ ls /tmp/micropython/mpy-cross/build - tmp/micropython/mpy-cross/build/mpy-cross adc1_cal.py + /tmp/micropython/mpy-cross/build/mpy-cross adc1_cal.py } function ci_build_packages_check_manifest { From 5fee1823f2c940f9d131c272547d356416c4bd3a Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Sat, 4 Feb 2023 22:02:53 +0100 Subject: [PATCH 18/38] Update ci.sh --- tools/ci.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/ci.sh b/tools/ci.sh index ff4cf73..d9e791d 100644 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -27,13 +27,6 @@ function ci_build_packages_setup { # check the required programs run /tmp/micropython/mpy-cross/build/mpy-cross --version python3 /tmp/micropython/tools/manifestfile.py --help - pwd - ls - ls /home/runner/work/MicroPython-ADC_Cal/ - ls /home/runner/work - ls /tmp/micropython - ls /tmp/micropython/mpy-cross/ - ls /tmp/micropython/mpy-cross/build /tmp/micropython/mpy-cross/build/mpy-cross adc1_cal.py } From 09acefc52e5d7b8f9f196eb48f8ab8a1526ff778 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 07:23:17 +0100 Subject: [PATCH 19/38] Update pylint.yml --- .github/workflows/pylint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 5f71c3f..c1cfd18 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -20,6 +20,7 @@ jobs: run: | python -m pip install --upgrade pip pip install pylint + pip install micropython-stubber - name: Analysing the code with pylint run: | pylint $(git ls-files 'adc1_cal.py') From cf26d27a885e1fa505b373e42affaff13dd40f52 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 07:56:28 +0100 Subject: [PATCH 20/38] Update pylint.yml --- .github/workflows/pylint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index c1cfd18..b3044f6 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -21,6 +21,7 @@ jobs: python -m pip install --upgrade pip pip install pylint pip install micropython-stubber + pip install -U micropython-esp32-stubs - name: Analysing the code with pylint run: | pylint $(git ls-files 'adc1_cal.py') From bc733ad9fea95dc0fdb56bd810b9a17eb7416cf1 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 08:55:29 +0100 Subject: [PATCH 21/38] Create .pylintrc --- .pylintrc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .pylintrc diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..e2b5a0a --- /dev/null +++ b/.pylintrc @@ -0,0 +1,7 @@ +[MASTER] +# Loaded Stubs: esp32-micropython-1.11.0 +init-hook='import sys;sys.path[1:1] = ["src/lib", "all-stubs/cpython-core", "all-stubs/mpy_1_12/frozen/esp32/GENERIC", "all-stubs/esp32_1_13_0-103",]' + +disable = missing-docstring, line-too-long, trailing-newlines, broad-except, logging-format-interpolation, invalid-name, + no-method-argument, assignment-from-no-return, too-many-function-args, unexpected-keyword-arg + # the 2nd line deals with the limited information in the generated stubs. From 970ace8c3984246aa3ab2280148da1ef6c7ed4d4 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 09:49:47 +0100 Subject: [PATCH 22/38] Update pylint.yml --- .github/workflows/pylint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index b3044f6..aac1d6d 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -22,6 +22,9 @@ jobs: pip install pylint pip install micropython-stubber pip install -U micropython-esp32-stubs + pwd + ls -a + ls -a / - name: Analysing the code with pylint run: | pylint $(git ls-files 'adc1_cal.py') From 20874737a77356e4cafcfef6c73c4d625ba69721 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 09:55:25 +0100 Subject: [PATCH 23/38] Update pylint.yml --- .github/workflows/pylint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index aac1d6d..6ded0b5 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.10"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -20,8 +20,8 @@ jobs: run: | python -m pip install --upgrade pip pip install pylint - pip install micropython-stubber - pip install -U micropython-esp32-stubs + pip -v install micropython-stubber + pip -v install -U micropython-esp32-stubs pwd ls -a ls -a / From d669768ebaae9974d810c0d435fac60b979c5796 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 09:59:06 +0100 Subject: [PATCH 24/38] Update pylint.yml --- .github/workflows/pylint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 6ded0b5..b9738e1 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10"] + python-version: ["3.9"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -25,6 +25,7 @@ jobs: pwd ls -a ls -a / + find / -name micropython-esp32-stubs - name: Analysing the code with pylint run: | pylint $(git ls-files 'adc1_cal.py') From 66e4b8f0e7aee475aa5dfdef00c0f9eb2d9416d9 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 10:05:00 +0100 Subject: [PATCH 25/38] Update pylint.yml --- .github/workflows/pylint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index b9738e1..e8167dd 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -25,7 +25,8 @@ jobs: pwd ls -a ls -a / - find / -name micropython-esp32-stubs + find /opt -name micropython-esp32-stubs + find /tmp -name micropython-esp32-stubs - name: Analysing the code with pylint run: | pylint $(git ls-files 'adc1_cal.py') From 6d255cd0186ff9fceba2c9a9fae46f873a8ecab2 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 10:05:59 +0100 Subject: [PATCH 26/38] Update pylint.yml --- .github/workflows/pylint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index e8167dd..dfa92dd 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -27,6 +27,7 @@ jobs: ls -a / find /opt -name micropython-esp32-stubs find /tmp -name micropython-esp32-stubs + find /usr -name micropython-esp32-stubs - name: Analysing the code with pylint run: | pylint $(git ls-files 'adc1_cal.py') From 8c7d587a5bade315ffb2b8bc8ff721d81bca1fd5 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 10:09:34 +0100 Subject: [PATCH 27/38] Update pylint.yml --- .github/workflows/pylint.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index dfa92dd..02fe55d 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -25,9 +25,8 @@ jobs: pwd ls -a ls -a / - find /opt -name micropython-esp32-stubs - find /tmp -name micropython-esp32-stubs - find /usr -name micropython-esp32-stubs + find /opt -name micropython-* + find /usr -name micropython-* - name: Analysing the code with pylint run: | pylint $(git ls-files 'adc1_cal.py') From 6fae9e3ec2a993836a8e396aa48c6d5cb36ffdb4 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 10:13:10 +0100 Subject: [PATCH 28/38] Update pylint.yml --- .github/workflows/pylint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 02fe55d..f5f9a5f 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9"] + python-version: ["3.7"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} From 7c5b49cd3430214305df1d0a17f89f8830bbbb8b Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 10:15:34 +0100 Subject: [PATCH 29/38] Update pylint.yml --- .github/workflows/pylint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index f5f9a5f..c796e8f 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7"] + python-version: ["3.8"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} From 6438025cddf279b9bb8572770f12f8b9c7dedccb Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Tue, 7 Feb 2023 10:16:16 +0100 Subject: [PATCH 30/38] Update pylint.yml --- .github/workflows/pylint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index c796e8f..44188a0 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -19,9 +19,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pylint pip -v install micropython-stubber pip -v install -U micropython-esp32-stubs + pip install pylint pwd ls -a ls -a / From b7a6f587e02e0d8d08a0822068b1da556cd327c0 Mon Sep 17 00:00:00 2001 From: Matt Trentini Date: Thu, 22 May 2025 14:02:47 +1000 Subject: [PATCH 31/38] Add package.json for MIP compatibility --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..3751fc7 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "urls": [ + ["adc1_cal.py", "github:matthias-bs/MicroPython-ADC_Cal/adc1_cal.py"] + ], + "version": "1.0.0", + "deps": [] +} \ No newline at end of file From 0b8d97c98ed499d31c25df44380b30b5dfcde973 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Thu, 22 May 2025 07:02:46 +0200 Subject: [PATCH 32/38] Update manifest.py --- manifest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifest.py b/manifest.py index 77064e7..42277a4 100644 --- a/manifest.py +++ b/manifest.py @@ -1 +1,8 @@ +metadata( + version="1.0.0", + description="MicroPython ESP32 library for calibrated on-chip ADC conversion", + author="matthias-bs", + license="MIT", +) + module("adc1_cal.py", opt=3) From 02dc8857ac3257ad659ca339d789818298af9237 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Thu, 22 May 2025 07:04:06 +0200 Subject: [PATCH 33/38] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3751fc7..ac41acb 100644 --- a/package.json +++ b/package.json @@ -4,4 +4,4 @@ ], "version": "1.0.0", "deps": [] -} \ No newline at end of file +} From f61a2039e2e5c563e890455d30b184d142207b0a Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Thu, 22 May 2025 07:08:50 +0200 Subject: [PATCH 34/38] Update code-formatting.yml --- .github/workflows/code-formatting.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-formatting.yml b/.github/workflows/code-formatting.yml index 88c23ee..6c7c744 100644 --- a/.github/workflows/code-formatting.yml +++ b/.github/workflows/code-formatting.yml @@ -7,8 +7,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 + with: + python-version: '3.11' - name: Install packages run: source tools/ci.sh && ci_code_formatting_setup - name: Run code formatting From 0e7785f6ca1290a865abf0f2909f3411250833fc Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Thu, 22 May 2025 07:12:31 +0200 Subject: [PATCH 35/38] Update README.txt --- tools/README.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/README.txt b/tools/README.txt index f082162..bf5c291 100644 --- a/tools/README.txt +++ b/tools/README.txt @@ -1,4 +1,4 @@ -"Black" is used for MicroPython code style ckecking: +"Black" is used for MicroPython code style checking: https://github.com/psf/black "uncrustify" is NOT used in this project, thus uncrustify.cfg wil not be used! From e901340719c9a12de1ef73fd36bf7a8b3d1611e2 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Thu, 22 May 2025 07:21:23 +0200 Subject: [PATCH 36/38] Update adc1_cal.py --- adc1_cal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adc1_cal.py b/adc1_cal.py index 2529f7e..7fd8d41 100644 --- a/adc1_cal.py +++ b/adc1_cal.py @@ -1,4 +1,5 @@ """MicroPython ESP32 ADC1 conversion using V_ref calibration value""" + ############################################################################### # adc1_cal.py # From 356f1b0e02a555a320bb429821295c885c415753 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Thu, 22 May 2025 07:28:14 +0200 Subject: [PATCH 37/38] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ac41acb..3be72f2 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,6 @@ "urls": [ ["adc1_cal.py", "github:matthias-bs/MicroPython-ADC_Cal/adc1_cal.py"] ], - "version": "1.0.0", + "version": "1.0.1", "deps": [] } From 0102fea50d7a4680b8d775349e7a73cf5f996d6d Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Thu, 22 May 2025 07:28:34 +0200 Subject: [PATCH 38/38] Update manifest.py --- manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.py b/manifest.py index 42277a4..ac61118 100644 --- a/manifest.py +++ b/manifest.py @@ -1,5 +1,5 @@ metadata( - version="1.0.0", + version="1.0.1", description="MicroPython ESP32 library for calibrated on-chip ADC conversion", author="matthias-bs", license="MIT", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy