Skip to content
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

Raspberry Pi Pico mode (based on ESP mode). #1261

Merged
merged 2 commits into from
Jan 31, 2021
Merged

Raspberry Pi Pico mode (based on ESP mode). #1261

merged 2 commits into from
Jan 31, 2021

Conversation

ntoll
Copy link
Member

@ntoll ntoll commented Jan 31, 2021

Given the VID/PID supplied by @ZanderBrown -- this is the simplest possible Mu mode for a Raspberry Pi Pico board. @ZanderBrown or @carlosperate, if you have a board available, can you please test this..?

@ntoll ntoll requested a review from carlosperate January 31, 2021 17:17
@ZanderBrown
Copy link
Contributor

  • Run
  • Files (Copy to/from, Write to main.py)
  • REPL
  • Plotter
  • Detect (un)plug

Other than “Detected new Raspberry Pi Pico device: Raspberry Pi Pico” seeming a bit odd everything seems to work as expected

"""
A mode for working with Raspberry Pi Pico running MicroPython.

Copyright (c) 2020 Nicholas H.Tollervey and others (see the AUTHORS file).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Time keeps passing

@dybber
Copy link
Collaborator

dybber commented Jan 31, 2021 via email

@ntoll
Copy link
Member Author

ntoll commented Jan 31, 2021

I've fixed up the naming so it reads as suggested by @ZanderBrown. Will merge just so we get it into this release. Thanks for the speedy turn-around on reviewing this hack. ;-)

@ntoll ntoll merged commit 3d43102 into master Jan 31, 2021
Copy link
Member

@carlosperate carlosperate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Been testing this and all looks good as well! 👍

@ntoll
Copy link
Member Author

ntoll commented Jan 31, 2021

Hurrah..!

@dybber
Copy link
Collaborator

dybber commented Jan 31, 2021

Here it is, if no board name is specified it will just write "Detected new <modename> device.":

mu/mu/interface/main.py

Lines 1317 to 1322 in 4dc0a11

if device.board_name:
msg = _("Detected new {} device: {}.").format(
device.long_mode_name, device.board_name
)
else:
msg = _("Detected new {} device.").format(device.long_mode_name)

@foxt
Copy link

foxt commented Mar 2, 2021

Does not work with the Tiny 2040.

Tiny 2040:

  Product ID:	0x08c7
  Vendor ID:	0x16d0
2021-03-02 13:23:29,972 - mu.modes.base:231(find_device) WARNING: Could not find device.
2021-03-02 13:23:29,972 - mu.modes.base:232(find_device) DEBUG: Available ports:
2021-03-02 13:23:29,972 - mu.modes.base:236(find_device) DEBUG: ['PID:0x0000 VID:0x0000 PORT:cu.Bluetooth-Incoming-Port', 'PID:0x0000 VID:0x0000 PORT:tty.Bluetooth-Incoming-Port', 'PID:0x274d VID:0x0424 PORT:cu.usbmodem145301', 'PID:0x274d VID:0x0424 PORT:tty.usbmodem145301', 'PID:0x08c7 VID:0x16d0 PORT:cu.usbmodem1201', 'PID:0x08c7 VID:0x16d0 PORT:tty.usbmodem1201', 'PID:0x08c7 VID:0x16d0 PORT:cu.usbmodem1203', 'PID:0x08c7 VID:0x16d0 PORT:tty.usbmodem1203']
2021-03-02 13:23:29,984 - mu.interface.main:723(show_message) DEBUG: Could not find an attached device.
2021-03-02 13:23:29,984 - mu.interface.main:724(show_message) DEBUG: Please make sure the device is plugged into this computer.

Edit: #1341

@carlosperate carlosperate deleted the pico-mode branch March 2, 2021 15:40
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.

5 participants