0

PlatformIO boards configuration for Adafruit ItsyBitsy 32u4
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

PlatformIO boards configuration for Adafruit ItsyBitsy 32u4

by morridm on Thu Apr 05, 2018 2:25 pm

I'm trying to create the board json/config for the Itsy Bitsy 32u4 I recently ordered and am not sure of the configuration. Would you able to help me with the board json for the "http://docs.platformio.org/en/latest/platforms/creating_board.html"? I thought maybe I could start with the Leonardo configuration.


{
"build": {
"core": "arduino",
"extra_flags": "-DARDUINO_AVR_LEONARDO",
"f_cpu": "16000000L",
"hwids": [
[
"0x2341",
"0x8036"
],
[
"0x2341",
"0x0036"
],
[
"0x2A03",
"0x0036"
],
[
"0x2A03",
"0x8036"
]
],
"mcu": "atmega32u4",
"usb_product": "Arduino Leonardo",
"variant": "leonardo"
},
"frameworks": [
"arduino"
],
"fuses": {
"efuse": "0xcb",
"hfuse": "0xd8",
"lfuse": "0xff",
"lock": "0x3F"
},
"name": "Arduino Leonardo",
"upload": {
"disable_flushing": true,
"maximum_ram_size": 2560,
"maximum_size": 28672,
"protocol": "avr109",
"require_upload_port": true,
"speed": 57600,
"use_1200bps_touch": true,
"wait_for_upload_port": true
},
"url": "https://www.arduino.cc/en/Main/ArduinoBoardLeonardo",
"vendor": "Arduino"
}

morridm
 
Posts: 9
Joined: Mon Jun 12, 2017 8:41 pm

Re: PlatformIO boards configuration for Adafruit ItsyBitsy 3

by morridm on Thu Apr 05, 2018 2:26 pm

Here's the Trinket Pro 5v/16mhz example:

{
"build": {
"core": "arduino",
"extra_flags": "-DARDUINO_AVR_PROTRINKET5",
"f_cpu": "16000000L",
"mcu": "atmega328p",
"variant": "eightanaloginputs"
},
"frameworks": [
"arduino"
],
"name": "Adafruit Pro Trinket 5V/16MHz (USB)",
"upload": {
"maximum_ram_size": 2048,
"maximum_size": 28672,
"protocol": "usbtiny"
},
"url": "http://www.adafruit.com/products/2000",
"vendor": "Adafruit"
}

morridm
 
Posts: 9
Joined: Mon Jun 12, 2017 8:41 pm

Re: PlatformIO boards configuration for Adafruit ItsyBitsy 3

by morridm on Thu Apr 05, 2018 2:35 pm

This is my initial stab at it:

{
"build": {
"core": "arduino",
"extra_flags": "-DARDUINO_AVR_ITSYBITSY532U4",
"f_cpu": "16000000L",
"hwids": [
[
"0x2341",
"0x8036"
],
[
"0x2341",
"0x0036"
],
[
"0x2A03",
"0x0036"
],
[
"0x2A03",
"0x8036"
]
],
"mcu": "atmega32u4",
"usb_product": "ItsyBitsy 32u4",
"variant": "itsybitsy"
},
"frameworks": [
"arduino"
],
"name": "Adafruit ItsyBitsy 32u4",
"upload": {
"disable_flushing": true,
"maximum_ram_size": 2560,
"maximum_size": 28672,
"protocol": "avr109",
"require_upload_port": true,
"speed": 57600,
"use_1200bps_touch": true,
"wait_for_upload_port": true
},
"url": "https://www.adafruit.com/product/3677/",
"vendor": "Adafruit"
}

morridm
 
Posts: 9
Joined: Mon Jun 12, 2017 8:41 pm

Re: PlatformIO boards configuration for Adafruit ItsyBitsy 3

by adafruit_support_mike on Fri Apr 06, 2018 4:33 am

We only have general knowledge of PlatformIO, but not enough to write config files.

Maybe someone from the community can help, but you might also want to check with the folks from the PlatformIO project.. they'll know how to do the conversion from a board support package (if that's what they use) better than anyone.

adafruit_support_mike
 
Posts: 63679
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.


cron