-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control the lights on the gamepad using Serial #1
base: main
Are you sure you want to change the base?
Conversation
stephenjust
commented
Feb 2, 2024
•
edited
Loading
edited
- To see the specific tasks where the Asana app for GitHub is being used, see below:
- https://app.asana.com/0/0/1206341964690183
code_1.py
Outdated
greenValue = int(commandString[5:8]) | ||
blueValue = int(commandString[8:11]) | ||
if not inRange(ledNumber, 1, 32): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these really not 0 indexed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did it this way to match the buttons, which start at 1 per the USB spec.
for /f %%D in ('wmic volume get DriveLetter^, Label ^| find "CIRCUITPY"') do set myDrive=%%D | ||
echo %myDrive% | ||
|
||
set myDrive=D: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened here? Did deploy.cmd not find the CIRCUITPY drive on your machine? Did it show up with a different name?
For whatever reason the original command worked in a console but not via
vscode. Is there a trick to it?
…On Fri, Feb 2, 2024, 2:05 PM JohnGilb ***@***.***> wrote:
***@***.**** approved this pull request.
------------------------------
In deploy.cmd
<#1 (comment)>
:
> @@ -1,6 +1,4 @@
-for /f %%D in ('wmic volume get DriveLetter^, Label ^| find "CIRCUITPY"') do set myDrive=%%D
-echo %myDrive%
-
+set myDrive=D:
What happened here? Did deploy.cmd not find the CIRCUITPY drive on your
machine? Did it show up with a different name?
—
Reply to this email directly, view it on GitHub
<#1 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAX7YNLEFV6QUOJIRQCGXQDYRVPKFAVCNFSM6AAAAABCV7XIPWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQNRQGQ3TQNJUHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Huh, no clue. It doesn't make too much difference; we can mess with it later to see if there's some way to make it reliable. |