From dd829c1405e1526c7a6050a1f95ca5a2792f9da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20Baebler?= <319826+stefanb@users.noreply.github.com> Date: Tue, 10 Dec 2024 21:53:48 +0100 Subject: [PATCH] fix: typos --- .vscode/settings.json | 5 ++++- README.md | 12 ++++++------ src/example.txt | 2 +- src/pico_usb.txt | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 2e2195a..1b5be22 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,5 +10,8 @@ "python.analysis.typeshedPaths": [ ".venv/Lib/site-packages" ], - "python.analysis.stubPath": ".venv/Lib/site-packages" + "python.analysis.stubPath": ".venv/Lib/site-packages", + "cSpell.words": [ + "Pico" + ] } diff --git a/README.md b/README.md index 5dde3f2..5243946 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ Repository for PicoUSB - RP2040 based, affordable, easy to use and easy to progr [Get your PicoUSB here!](https://www.elecrow.com/picousb-raspberry-pi-pico-rp2040-powered-bad-usb-rubber-ducky.html) -[Check out PicoUSB Website & Subscribe to our newsetter!](https://picousb.com/) +[Check out PicoUSB Website & Subscribe to our newsletter!](https://picousb.com/) You just got an empty PicoUSB? Here's how to program it: ## Setup -1. Download the latest [CircuitPython for Rasperry Pi Pico](https://circuitpython.org/board/raspberry_pi_pico/). +1. Download the latest [CircuitPython for Raspberry Pi Pico](https://circuitpython.org/board/raspberry_pi_pico/). 2. Insert PicoUSB into your USB drive while holding the "Boot" button. (Opens it in a bootloader mode. The first time you do this you don't have to hold the "Boot" button) 3. Copy `CircuitPython.uf2` file to the USB and wait for few seconds or a minute for it to finish setting up. (will close and reopen the explorer, be patient) 4. Download/Clone the contents of this repository. @@ -42,7 +42,7 @@ That is it! Modify `pico_usb.txt` to change the functionality. See below to know - pico_usb.txt - here is where your executable pseudo-code is located. - layout.txt - here is where you select your keyboard layout. -- code.py - interpreter that executes your pesudo code. Free to modify. (1) +- code.py - interpreter that executes your pseudo code. Free to modify. (1) - boot.py - this code executes before the USB is recognised. Free to modify. (1) **pico_usb.txt API:** @@ -52,10 +52,10 @@ That is it! Modify `pico_usb.txt` to change the functionality. See below to know - write() - sequentially presses many buttons in a row. example: `write(Hello world!)` - hold() - presses and holds down one or more buttons until `release()` is called - release() - releases **all** held keys -- move(x, y) - moves the mouse on the main display to the given location, from the current location as a reference. negative x = left, possitive x = right, negative y = down, possitive y = up. +- move(x, y) - moves the mouse on the main display to the given location, from the current location as a reference. negative x = left, positive x = right, negative y = down, positive y = up. - click(btn)- clicks the mouse. `btn` is the mouse button, options are left, right, middle -- scroll(x) - scrolls the mouse. Negative number scrolls down, possitive scroll up -- volume(x) - Modifies the system volume. Negative numbers move the volume slider down by x, possitive move it up by x. min volume = 0. max = 100. `volume(mute)` mutes the speakers. +- scroll(x) - scrolls the mouse. Negative number scrolls down, positive scroll up +- volume(x) - Modifies the system volume. Negative numbers move the volume slider down by x, positive move it up by x. min volume = 0. max = 100. `volume(mute)` mutes the speakers. - loop() - loops everything before this command ## Development diff --git a/src/example.txt b/src/example.txt index baedcde..8c71a91 100644 --- a/src/example.txt +++ b/src/example.txt @@ -1,4 +1,4 @@ -# dont forget to change your keyboard layout in layout.txt +# Don't forget to change your keyboard layout in layout.txt delay(3) #on slower computers it is better to have bigger delays. I usually use delay(0.8) on my faster PC. press(windows + d) # minimizes all windows diff --git a/src/pico_usb.txt b/src/pico_usb.txt index 1c42da4..b3e6f6f 100644 --- a/src/pico_usb.txt +++ b/src/pico_usb.txt @@ -15,7 +15,7 @@ ### from the current location as a reference. negative x = left, ### ### positive x = right, negative y = down, positive y = up. ### ### click(btn)- btn is the mouse button, options are left, right, middle ### -### scroll(x) - negative number scrolls down, possitive scrolls up ### +### scroll(x) - negative number scrolls down, positive scrolls up ### ### volume(x) - negative number is volume down by x, positive volume up by x. ### ### min volume = 0. max = 100. volume(mute) mutes the speakers. ### ### loop() - forever loops everything after the loop command. Use loop only once. ###