{"action":"created","issue":{"url":"https://api.github.com/repos/NicoHood/HID/issues/13","labels_url":"https://api.github.com/repos/NicoHood/HID/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/NicoHood/HID/issues/13/comments","events_url":"https://api.github.com/repos/NicoHood/HID/issues/13/events","html_url":"https://github.com/NicoHood/HID/issues/13","id":57338015,"number":13,"title":"Add support for Pololu A-Star 32u4","user":{"login":"pilotniq","id":407410,"avatar_url":"https://avatars.githubusercontent.com/u/407410?v=3","gravatar_id":"","url":"https://api.github.com/users/pilotniq","html_url":"https://github.com/pilotniq","followers_url":"https://api.github.com/users/pilotniq/followers","following_url":"https://api.github.com/users/pilotniq/following{/other_user}","gists_url":"https://api.github.com/users/pilotniq/gists{/gist_id}","starred_url":"https://api.github.com/users/pilotniq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilotniq/subscriptions","organizations_url":"https://api.github.com/users/pilotniq/orgs","repos_url":"https://api.github.com/users/pilotniq/repos","events_url":"https://api.github.com/users/pilotniq/events{/privacy}","received_events_url":"https://api.github.com/users/pilotniq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-11T16:19:23Z","updated_at":"2015-02-28T07:47:48Z","closed_at":null,"body":"I'm trying to add support for the Pololu A-Star 32u4 that I'm using. I assume it should be equivalent to the Leonardo.\r\n\r\nI've copied the data from the boards.txt that came with the A-Star 32u4, and tried to integrate it into the HID boards.txt, by copying missing stuff from the Leonardo entry. I ended up with:\r\n\r\n    aStar32U4.name=Pololu A-Star 32U4\r\n    aStar32U4.vid=0x1ffb\r\n    aStar32U4.pid=0x2300\r\n    aStar32U4.vid.1=0x1ffb\r\n    aStar32U4.pid.1=0xa300\r\n    aStar32U4.upload.protocol=avr109\r\n    aStar32U4.upload.maximum_size=28672\r\n    aStar32U4.upload.speed=57600\r\n    aStar32U4.upload.disable_flushing=true\r\n    aStar32U4.bootloader.low_fuses=0xff\r\n    aStar32U4.bootloader.high_fuses=0xd0\r\n    aStar32U4.bootloader.extended_fuses=0xc8\r\n    aStar32U4.bootloader.path=caterina\r\n    aStar32U4.bootloader.file=Caterina-A-Star.hex\r\n    aStar32U4.bootloader.unlock_bits=0x3F\r\n    aStar32U4.bootloader.lock_bits=0x2F\r\n    \r\n    aStar32U4.build.mcu=atmega32u4\r\n    aStar32U4.build.f_cpu=16000000L\r\n    aStar32U4.build.core=HID:hid\r\n    aStar32U4.build.vid=0x1ffb\r\n    aStar32U4.build.pid=0x2300\r\n    aStar32U4.build.usb_product=\"Pololu A-Star 32u4\"\r\n    aStar32U4.build.board=AVR_LEONARDO\r\n    #aStar32U4.build.variant=arduino:leonardo\r\n    aStar32u4.build.extra_flags={build.usb_flags}\r\n    \r\n    #USB core selection\r\n    #HID Project needs to be installed https://github.com/NicoHood/HID\r\n    aStar32U4.menu.usbcore.hid=Serial + Extended HID\r\n    aStar32U4.menu.usbcore.hid.build.variant=leonardo_hid\r\n    aStar32U4.menu.usbcore.gamepad=Serial + Gamepad HID\r\n    aStar32U4.menu.usbcore.gamepad.build.variant=leonardo_gamepad\r\n    aStar32U4.menu.usbcore.custom=Serial + Custom HID\r\n    aStar32U4.menu.usbcore.custom.build.variant=leonardo_custom\r\n    aStar32U4.menu.usbcore.USB_CORE=Default Core\r\n    aStar32U4.menu.usbcore.USB_CORE.build.variant=leonardo\r\n    aStar32U4.menu.usbcore.NO_USB=No USB functions\r\n    aStar32U4.menu.usbcore.NO_USB.build.variant=leonardo_no_usb\r\n\r\nWhen I try to build in the Arduino environment, I get the errors starting with:\r\n\r\n    In file included from /Users/erlandlewin/Documents/Arduino/hardware/HID/avr/cores/hid/USB-Core/CDC.h:51:0,\r\n                     from /Users/erlandlewin/Documents/Arduino/hardware/HID/avr/cores/hid/Arduino.h:245,\r\n                     from /Users/erlandlewin/Documents/Arduino/hardware/HID/avr/cores/hid/USB-Core/USBAPI.h:53,\r\n                     from /Users/erlandlewin/Documents/Arduino/hardware/HID/avr/cores/hid/USB-Core/USBCore.cpp:39:\r\n    /Users/erlandlewin/Documents/Arduino/hardware/HID/avr/cores/hid/USB-Core/USBCore.cpp:101:87: error: 'USB_VID' was not declared in this scope\r\n     D_DEVICE(USB_DEVICE_CLASS_IAD, USB_DEVICE_SUB_CLASS_IAD, USB_DEVICE_PROTOCOL_IAD, 64, USB_VID, USB_PID, 0x100, IMANUFACTURER, IPRODUCT, 0, 1);\r\n\r\nI'm not sure how to continue from here. Can you help me? Thanks!\r\n"},"comment":{"url":"https://api.github.com/repos/NicoHood/HID/issues/comments/76515919","html_url":"https://github.com/NicoHood/HID/issues/13#issuecomment-76515919","issue_url":"https://api.github.com/repos/NicoHood/HID/issues/13","id":76515919,"user":{"login":"NicoHood","id":6888294,"avatar_url":"https://avatars.githubusercontent.com/u/6888294?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoHood","html_url":"https://github.com/NicoHood","followers_url":"https://api.github.com/users/NicoHood/followers","following_url":"https://api.github.com/users/NicoHood/following{/other_user}","gists_url":"https://api.github.com/users/NicoHood/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoHood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoHood/subscriptions","organizations_url":"https://api.github.com/users/NicoHood/orgs","repos_url":"https://api.github.com/users/NicoHood/repos","events_url":"https://api.github.com/users/NicoHood/events{/privacy}","received_events_url":"https://api.github.com/users/NicoHood/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T07:47:48Z","updated_at":"2015-02-28T07:47:48Z","body":"An update? where? here?"}}