{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/Adafruit-Trinket-USB/issues/11","labels_url":"https://api.github.com/repos/adafruit/Adafruit-Trinket-USB/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/Adafruit-Trinket-USB/issues/11/comments","events_url":"https://api.github.com/repos/adafruit/Adafruit-Trinket-USB/issues/11/events","html_url":"https://github.com/adafruit/Adafruit-Trinket-USB/issues/11","id":86411946,"number":11,"title":"My IDE shows, \"Error compiling\" when trying to verifiy my code.","user":{"login":"Pastyguy","id":10106969,"avatar_url":"https://avatars.githubusercontent.com/u/10106969?v=3","gravatar_id":"","url":"https://api.github.com/users/Pastyguy","html_url":"https://github.com/Pastyguy","followers_url":"https://api.github.com/users/Pastyguy/followers","following_url":"https://api.github.com/users/Pastyguy/following{/other_user}","gists_url":"https://api.github.com/users/Pastyguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Pastyguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pastyguy/subscriptions","organizations_url":"https://api.github.com/users/Pastyguy/orgs","repos_url":"https://api.github.com/users/Pastyguy/repos","events_url":"https://api.github.com/users/Pastyguy/events{/privacy}","received_events_url":"https://api.github.com/users/Pastyguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-09T02:21:36Z","updated_at":"2015-07-31T13:38:56Z","closed_at":null,"body":"I'm using the trinket to as a keyboard(trying to at least), but my problem is just with the IDE. I try to install the the library by sketch>inlcude library>add .zip then returns all clear.\r\nProblem occures when i try to varifiey the code it, and it returns  with this error message\r\n\r\n\"Arduino: 1.6.4 (Windows 7), Board: \"Adafruit Trinket 8MHz\"\r\n\r\nBuild options changed, rebuilding all\r\n\r\nTrinketKeyboardExample.ino:6:29: fatal error: TrinketKeyboard.h: No such file or directory\r\ncompilation terminated.\r\nError compiling.\r\n\r\n  This report would have more information with\r\n  \"Show verbose output during compilation\"\r\n  enabled in File > Preferences.\r\n\"\r\n\r\nMy code from the library im trying to load.\r\n\"\r\n    /*\r\n    TrinketKeyboard example\r\n    For Trinket by Adafruit Industries\r\n    */\r\n     \r\n    #include <TrinketKeyboard.h>\r\n     \r\n    #define PIN_BUTTON_CAPITAL_A 0\r\n    #define PIN_BUTTON_STRING    2\r\n     \r\n    void setup()\r\n    {\r\n      // button pins as inputs\r\n      pinMode(PIN_BUTTON_CAPITAL_A, INPUT);\r\n      pinMode(PIN_BUTTON_STRING, INPUT);\r\n     \r\n      // setting input pins to high means turning on internal pull-up resistors\r\n      digitalWrite(PIN_BUTTON_CAPITAL_A, HIGH);\r\n      digitalWrite(PIN_BUTTON_STRING, HIGH);\r\n      // remember, the buttons are active-low, they read LOW when they are not pressed\r\n     \r\n      // start USB stuff\r\n      TrinketKeyboard.begin();\r\n    }\r\n     \r\n    void loop()\r\n    {\r\n      // the poll function must be called at least once every 10 ms\r\n      // or cause a keystroke\r\n      // if it is not, then the computer may think that the device\r\n      // has stopped working, and give errors\r\n      TrinketKeyboard.poll();\r\n     \r\n      if (digitalRead(PIN_BUTTON_CAPITAL_A) == LOW)\r\n      {\r\n        // this should type a capital A\r\n        TrinketKeyboard.pressKey(KEYCODE_MOD_LEFT_SHIFT, KEYCODE_A);\r\n        // this releases the key (otherwise it is held down!)\r\n        TrinketKeyboard.pressKey(0, 0);\r\n      }\r\n     \r\n      if (digitalRead(PIN_BUTTON_STRING) == LOW)\r\n      {\r\n        // type out a string using the Print class\r\n        TrinketKeyboard.print(\"Hello World!\");\r\n      }\r\n    }\r\n\"\r\n\r\nId really appreciate the help. Thanks!"},"comment":{"url":"https://api.github.com/repos/adafruit/Adafruit-Trinket-USB/issues/comments/126694437","html_url":"https://github.com/adafruit/Adafruit-Trinket-USB/issues/11#issuecomment-126694437","issue_url":"https://api.github.com/repos/adafruit/Adafruit-Trinket-USB/issues/11","id":126694437,"user":{"login":"elwin1234","id":3977962,"avatar_url":"https://avatars.githubusercontent.com/u/3977962?v=3","gravatar_id":"","url":"https://api.github.com/users/elwin1234","html_url":"https://github.com/elwin1234","followers_url":"https://api.github.com/users/elwin1234/followers","following_url":"https://api.github.com/users/elwin1234/following{/other_user}","gists_url":"https://api.github.com/users/elwin1234/gists{/gist_id}","starred_url":"https://api.github.com/users/elwin1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elwin1234/subscriptions","organizations_url":"https://api.github.com/users/elwin1234/orgs","repos_url":"https://api.github.com/users/elwin1234/repos","events_url":"https://api.github.com/users/elwin1234/events{/privacy}","received_events_url":"https://api.github.com/users/elwin1234/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T13:38:56Z","updated_at":"2015-07-31T13:38:56Z","body":"I also had this error for the TrinketFakeUsbSerial library. Seems that only the usbdravasm165.inc file is included in the package. Downloaded the file from https://raw.githubusercontent.com/digistump/DigisparkArduinoIntegration/master/libraries/DigisparkKeyboard/usbdrvasm16.inc\r\n\r\nHowever, now I get:\r\n```\r\nIn file included from /home/elwin/Arduino/libraries/TrinketFakeUsbSerial/usbdrvasm_includer.S:24:0:\r\n/home/elwin/Arduino/libraries/TrinketFakeUsbSerial/usbdrv/usbdrvasm.S:17:0: warning: \"__SFR_OFFSET\" redefined [enabled by default]\r\n #define __SFR_OFFSET 0      /* used by avr-libc's register definitions */\r\n ^\r\nIn file included from /usr/share/arduino/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /home/elwin/Arduino/libraries/TrinketFakeUsbSerial/cmdline_defs.h:26,\r\n                 from /home/elwin/Arduino/libraries/TrinketFakeUsbSerial/usbdrvasm_includer.S:22:\r\n/usr/share/arduino/hardware/tools/avr/avr/include/avr/sfr_defs.h:141:0: note: this is the location of the previous definition\r\n #    define __SFR_OFFSET 0x20\r\n ^\r\n/home/elwin/Arduino/libraries/TrinketFakeUsbSerial/usbdrv/asmcommon.inc: Assembler messages:\r\n/home/elwin/Arduino/libraries/TrinketFakeUsbSerial/usbdrv/asmcommon.inc:44: Error: constant value required\r\n/home/elwin/Arduino/libraries/TrinketFakeUsbSerial/usbdrv/asmcommon.inc:60: Error: constant value required\r\n/home/elwin/Arduino/libraries/TrinketFakeUsbSerial/usbdrv/asmcommon.inc:97: Error: constant value required\r\n/home/elwin/Arduino/libraries/TrinketFakeUsbSerial/usbdrv/asmcommon.inc:98: Error: constant value required\r\n/home/elwin/Arduino/libraries/TrinketFakeUsbSerial/usbdrv/usbdrvasm16.inc:333: Error: constant value required\r\nError compiling.\r\n```"}}