Skip to content

Conversation

@stephenjust
Copy link

@stephenjust stephenjust commented Feb 2, 2024


code_1.py Outdated
redValue = int(commandString[2:5])
greenValue = int(commandString[5:8])
blueValue = int(commandString[8:11])
if not inRange(ledNumber, 1, 32):
Copy link
Contributor

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?

Copy link
Author

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:
Copy link
Contributor

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?

@stephenjust
Copy link
Author

stephenjust commented Feb 2, 2024 via email

@JohnGilb
Copy link
Contributor

JohnGilb commented Feb 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants