joshmarinacci / arduino-data

machine readable info about the many Arduino and Arduino compatible boards
26 stars 5 forks source link

AdaFruit Flora #11

Closed tallsam closed 10 years ago

tallsam commented 10 years ago

I got this working with the following board data:

{
    "id": "flora1.0",
    "name": "Adafruit Flora",
    "upload": {
        "protocol": "avr109",
        "maximum_size": "28672",
        "speed": "57600"
    },
    "bootloader": {
        "low_fuses": "0xff",
        "high_fuses": "0xd8",
        "extended_fuses": "0xcb",
        "path": "caterina",
        "file": "Caterina-Flora8.hex",
        "unlock_bits": "0x3F",
        "lock_bits": "0x2F"
    },
    "build": {
        "mcu": "atmega32u4",
        "f_cpu": "8000000L",
        "vid": "0x239A",
        "pid": "0x8004",
        "core": "arduino",
        "variant": "flora"
    },
    "info": {
        "power": {
            "operating":5,
            "inputmin":3.5,
            "inputmax":9
        },
        "memory": {
            "flash":32,
            "sram":2.5,
            "eeprom":1
        },
        "clockspeed": 16,
        "io":{
            "digital":8,
            "pwm":4,
            "analogin":4
        }
    },
    "homepage": "https://learn.adafruit.com/getting-started-with-flora/overview",
    "vendor":"AdaFruit"
}

Note that for this board you need to add pins_arduino.h and Caterina-Flora8.hex to the appropriate directories

See: https://learn.adafruit.com/getting-started-with-flora/ide-florafication for the files.

Once that is set up a basic blink sketch works correctly.

I'm not 100% sure on the io pins, i just grabbed those from here:

https://learn.adafruit.com/getting-started-with-flora/flora-pinout-diagram

joshmarinacci commented 10 years ago

The hex file is just to reflash the bootloader, right? Since Electron doesn't support that (at least not yet), I think we could support Flora by just conditionally swapping the pins_arduino.h file

joshmarinacci commented 10 years ago

I've started work on some other adafruit boards, so adding this in shouldn't be too hard. Do you have a real flora to test with?

tallsam commented 10 years ago

Yeah I do. I've got it work with blink already. I've also got some trinkets floating around. On Jul 7, 2014 8:42 AM, "Josh Marinacci" notifications@github.com wrote:

I've started work on some other adafruit boards, so adding this in shouldn't be too hard. Do you have a real flora to test with?

— Reply to this email directly or view it on GitHub https://github.com/joshmarinacci/arduino-data/issues/11#issuecomment-48132648 .

joshmarinacci commented 10 years ago

I've merged the support and can get it to compile correctly. Please test with a real board. You'll need to update your copy of the electron source then do an npm update to update board info module.

tallsam commented 10 years ago

Confirmed it works correctly with a real Flora running Blink.