Skip to content

Commit ba3a5ab

Browse files
authored
Merge pull request #301 from paulober/develop
Update v4.3.0
2 parents 1d2347f + 0a8f43a commit ba3a5ab

File tree

12 files changed

+698
-514
lines changed

12 files changed

+698
-514
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -38,49 +38,48 @@ jobs:
3838
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3939

4040
steps:
41-
- name: Checkout repository
42-
uses: actions/checkout@v4
43-
44-
- run: sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
41+
- name: Checkout repository
42+
uses: actions/checkout@v5
43+
with:
44+
persist-credentials: false
4545

46-
# Initializes the CodeQL tools for scanning.
47-
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@v3
49-
with:
50-
languages: ${{ matrix.language }}
51-
# If you wish to specify custom queries, you can do so here or in a config file.
52-
# By default, queries listed here will override any specified in a config file.
53-
# Prefix the list here with "+" to use these queries and those in the config file.
54-
55-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
56-
# queries: security-extended,security-and-quality
46+
- run: sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
5747

58-
59-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
60-
# If this step fails, then you should remove it and run the build manually (see below)
61-
- name: Autobuild
62-
uses: github/codeql-action/autobuild@v3
63-
64-
- name: Install Dependencies for custom build
65-
shell: bash
66-
run: |
67-
sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
68-
npm ci --no-audit
69-
env:
70-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
# Initializes the CodeQL tools for scanning.
49+
- name: Initialize CodeQL
50+
uses: github/codeql-action/init@v3
51+
with:
52+
languages: ${{ matrix.language }}
53+
# If you wish to specify custom queries, you can do so here or in a config file.
54+
# By default, queries listed here will override any specified in a config file.
55+
# Prefix the list here with "+" to use these queries and those in the config file.
56+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
7157

72-
- name: Custom build
73-
run: npm run compile
58+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
59+
# If this step fails, then you should remove it and run the build manually (see below)
60+
- name: Autobuild
61+
uses: github/codeql-action/autobuild@v3
7462

75-
# ℹ️ Command-line programs to run using the OS shell.
76-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
- name: Install Dependencies for custom build
64+
shell: bash
65+
run: |
66+
sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
67+
npm ci --no-audit
68+
env:
69+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7770

78-
# If the Autobuild fails above, remove it and uncomment the following three lines.
79-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
71+
- name: Custom build
72+
run: npm run compile
8073

81-
# - run: |
82-
# echo "Run, Build Application using script"
83-
# ./location_of_script_within_repo/buildscript.sh
74+
# ℹ️ Command-line programs to run using the OS shell.
75+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
8476

85-
- name: Perform CodeQL Analysis
86-
uses: github/codeql-action/analyze@v3
77+
# If the Autobuild fails above, remove it and uncomment the following three lines.
78+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
79+
80+
# - run: |
81+
# echo "Run, Build Application using script"
82+
# ./location_of_script_within_repo/buildscript.sh
83+
84+
- name: Perform CodeQL Analysis
85+
uses: github/codeql-action/analyze@v3

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
runs-on: ubuntu-latest
2626

2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929

30-
- name: Setup Node v20.14.0
31-
uses: actions/setup-node@v4
30+
- name: Setup Node v22.17.0
31+
uses: actions/setup-node@v5
3232
with:
33-
node-version: "20.14.0"
33+
node-version: "22.17.0"
3434
registry-url: "https://npm.pkg.github.com"
3535
scope: "@paulober"
3636
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ permissions:
1212

1313
jobs:
1414
release:
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919

20-
- name: Setup Node v20.9.0
21-
uses: actions/setup-node@v4
20+
- name: Setup Node v22.17.0
21+
uses: actions/setup-node@v5
2222
with:
23-
node-version: '20.14.0'
23+
node-version: '22.17.0'
2424
registry-url: "https://npm.pkg.github.com"
2525
scope: "@paulober"
2626
token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ All notable changes to the "MicroPico" extension will be documented in this file
1010

1111
---
1212

13+
## [4.3.0] - 2025-09-06
14+
15+
### Added
16+
17+
- `micropico.newProject` command to create a new MicroPico project in a new or existing folder
18+
- "Create new MicroPico project" button to empty explorer view (#292)
19+
20+
### Changed
21+
22+
- Updated dependencies
23+
- Changed minimum Visual Studio Code version to `1.103.2`
24+
- Update MicroPthon stubs to `1.26.0` stable (Thanks to @Josverl)
25+
- Changed `toggle()` to `value()` in README example (#280 by @FunDeckHermit)
26+
1327
## [4.2.2] - 2025-03-27
1428

1529
### Changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**MicroPico** is a Visual Studio Code extension designed to simplify and accelerate the development of MicroPython projects for the Raspberry Pi Pico and Pico W boards. This tool streamlines the coding process, providing code highlighting, auto-completion, code snippets, and project management features, all tailored for the seamless development experience with MicroPython on Raspberry Pi Pico and Pico W microcontrollers.
66

7-
> __Included auto-completion based on Raspberry Pi Pico W MicroPython firmware: [RPI_PICO_W-20241129-v1.24.1.uf2](https://micropython.org/resources/firmware/RPI_PICO_W-20241129-v1.24.1.uf2) from the [micropython-stubs project](https://github.com/Josverl/micropython-stubs)__
7+
> __Included auto-completion based on Raspberry Pi Pico W MicroPython firmware: [RPI_PICO2_W-20250809-v1.26.0.uf2](https://micropython.org/resources/firmware/RPI_PICO2_W-20250809-v1.26.0.uf2) from the [micropython-stubs project](https://github.com/Josverl/micropython-stubs)__
88
99
Works with:
1010
| Platform | x86 | arm64 | armhf |
@@ -29,7 +29,7 @@ Works with:
2929

3030
## Requirements
3131

32-
* [Visual Studio Code v1.92.1 or newer](https://code.visualstudio.com/Download)
32+
* [Visual Studio Code v1.103.2 or newer](https://code.visualstudio.com/Download)
3333
* [Python 3.10 or newer](https://www.python.org/downloads/)
3434

3535
* [MicroPython firmware](https://micropython.org/download) flashed onto the Raspberry Pi Pico:
@@ -47,7 +47,7 @@ On most Linux installations the device file of the Pico serial port is owned by
4747

4848
## Getting started
4949

50-
- First of all open a folder and run `> MicroPico > Initialize MicroPico Project` command via `Ctrl+Shift+P` (or the equivalent on your platform) VS Code command palette. This will import stubs for autocompletion and the settings into your project folder. For the autocompletion to work, the extension prompts you (after project configuration) to install recommended extensions mentioned in [\#Requirements](#requirements).
50+
- First of all open a folder and run `> MicroPico > Initialize MicroPico project` command via `Ctrl+Shift+P` (or the equivalent on your platform) VS Code command palette. This will import stubs for autocompletion and the settings into your project folder. For the autocompletion to work, the extension prompts you (after project configuration) to install recommended extensions mentioned in [\#Requirements](#requirements).
5151

5252
- Have the onboard LED flashing in under 5 minutes:
5353

@@ -60,7 +60,7 @@ pin = Pin("LED", Pin.OUT)
6060
print("LED starts flashing...")
6161
while True:
6262
try:
63-
pin.toggle()
63+
pin.value(not pin.value())
6464
sleep(1) # sleep 1sec
6565
except KeyboardInterrupt:
6666
break

0 commit comments

Comments
 (0)