Skip to content

List boards with cpu option in FQBN #45

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

Closed
brusherru opened this issue Sep 21, 2018 · 2 comments · Fixed by #67
Closed

List boards with cpu option in FQBN #45

brusherru opened this issue Sep 21, 2018 · 2 comments · Fixed by #67
Labels
type: enhancement Proposed improvement

Comments

@brusherru
Copy link

brusherru commented Sep 21, 2018

Enhancement request

It will be handy to get a cpu option in FQBN while listing boards (or listing all boards) as a subset.

When listing all boards:

...
Arduino/Genuino Mega or Mega 2560		arduino:avr:mega
↳ ATmega 2560 (Mega 2560)			arduino:avr:mega:cpu=atmega2560
↳ ATmega 1280					arduino:avr:mega:cpu=atmega1280
...

When listing connected boards:

FQBN                	  		Port                  	ID         	Board Name      
arduino:avr:mega2560			/dev/cu.usbmodem1411	2341:0042	Arduino/Genuino Mega or Mega 2560
↳ arduino:avr:mega:cpu=atmega2560						ATmega 2560 (Mega 2560)			
↳ arduino:avr:mega:cpu=atmega1280						ATmega 1280
@brusherru
Copy link
Author

It may be turned on with an optional flag --verbose or something like this.

@cmaglie cmaglie added the type: enhancement Proposed improvement label Sep 21, 2018
@brusherru
Copy link
Author

Oh. I forget that there could be more than one option (E.G. esp8266 have a lot of options).
So I propose to do something like:

{
  fqbn: 'arduino:avr:mega',
  name: 'Arduino/Genuino Mega or Mega 2560',
  options: {
    cpu: [
      {
        value: 'atmega2560',
        name: 'ATmega 2560 (Mega 2560)',
        default: true,
      },
      {
        value: 'atmega1280',
        name: 'ATmega 1280'
      }
    ]
  }
}

And for text output, something like this:

FQBN			Port			ID		Board Name
arduino:avr:mega2560	/dev/cu.usbmodem1411	2341:0042	Arduino/Genuino Mega or Mega 2560
↳ cpu
↳ ↳ Value	Option Name		Default
↳ ↳ atmega2560	ATmega 2560 (Mega2560)	✔
↳ ↳ atmega1280	ATmega 1280

So it could be extended with any amount of options.
Also, we could mark some of options as "default" (additional field default: true or column in text output), if it possible.

cmaglie added a commit to cmaglie/arduino-cli that referenced this issue Oct 11, 2018
@cmaglie cmaglie added this to the next alpha milestone Oct 11, 2018
cmaglie added a commit to cmaglie/arduino-cli that referenced this issue Oct 19, 2018
cmaglie added a commit to cmaglie/arduino-cli that referenced this issue Oct 19, 2018
mastrolinux pushed a commit that referenced this issue Jul 16, 2019
per1234 added a commit that referenced this issue Aug 9, 2021
Add check for dead URL in library.properties url field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants