{"id":574,"date":"2015-11-06T09:33:29","date_gmt":"2015-11-06T18:33:29","guid":{"rendered":"\/blog\/?p=574"},"modified":"2023-09-21T09:38:09","modified_gmt":"2023-09-21T00:38:09","slug":"connecting-and-programming-your-digispark","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=574","title":{"rendered":"Connecting and Programming Your Digispark"},"content":{"rendered":"<p>\ucd9c\ucc98 : <a href=\"https:\/\/digistump.com\/wiki\/digispark\/tutorials\/connecting\" target=\"_blank\" rel=\"noopener\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">https:\/\/digistump.com\/wiki\/digispark\/tutorials\/connecting<\/span><\/a><\/p>\r\n<h1 class=\"sectionedit1\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Bootloader:<\/span><\/h1><div class=\"level2\"><p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The bootloader is the code that is pre-programmed on your Digispark and allows it to act as a USB device so that it can be programmed by the Arduino IDE. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The Digispark runs the \"micronucleus tiny85\" bootloader version 1.02, an open source project: <\/span><a title=\"https:\/\/github.com\/micronucleus\/micronucleus\" class=\"urlextern\" href=\"https:\/\/github.com\/micronucleus\/micronucleus\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">https:\/\/github.com\/micronucleus\/micronucleus<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> originally written by Bluebie: <\/span><a title=\"https:\/\/github.com\/Bluebie\" class=\"urlextern\" href=\"https:\/\/github.com\/Bluebie\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">https:\/\/github.com\/Bluebie<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\">. <\/span><\/p>\r\n<p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">CAUTION<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> We are not at this point supporting upgrading the firmware, so if you decide to, you do so entirely at your own risk. <\/span><\/p>\r\n<\/div><h2 class=\"sectionedit3\" id=\"software\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Software:<\/span><\/h2><div class=\"level2\"><p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The Digispark uses the Arduino IDE 1.6.5+ <\/span><\/p>\r\n<\/div><h1 class=\"sectionedit4\" id=\"installation_instructions\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Installation Instructions:<\/span><\/h1><div class=\"level1\"><ul><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">First download the appropriate Arduino package at the Arduino.cc website: <\/span><a title=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" class=\"urlextern\" href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">https:\/\/www.arduino.cc\/en\/Main\/Software<\/span><\/a><\/strong><\/div><\/li><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Install or Unzip the Arduino application.<\/span><\/strong><\/div><\/li><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Run the Arduino application.<\/span><\/strong><\/div><\/li><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">In the Arduino application go to the \"File\" menu and select \"Preferences\"<\/span><\/strong><\/div><\/li><\/ul><p><img decoding=\"async\" class=\"mediacenter\" alt=\"\" src=\"https:\/\/digistump.com\/wiki\/_media\/digispark\/tutorials\/preferences.gif\" \/><\/p>\r\n<ul><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">In the box labeled \"Additional Boards Manager URLs\" enter:<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><pre class=\"code\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">http:\/\/digistump.com\/package_digistump_index.json<\/span><\/pre>\n\n<!-- \/wp:post-content -->\n<!-- \/wp:syntaxhighlighter\/code -->\n<\/div><\/li><\/ul><p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">and click OK<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Note: If you already have additional URLs entered in that box, then click the button on the right of the box and enter this <\/span><abbr title=\"Uniform Resource Locator\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">URL<\/span><\/abbr><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> on a new line. <\/span><img decoding=\"async\" class=\"mediacenter\" alt=\"\" src=\"https:\/\/digistump.com\/wiki\/_media\/digispark\/tutorials\/entry.jpg\" \/><\/p>\r\n<ul><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Go to the \"Tools\" menu and then the \"Board\" submenu - select \"Boards Manager\" and then from the type drop down select \"Contributed\":<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Select the \"Digistump AVR Boards\" package and click the \"Install\" button.<\/span><\/strong><\/div><\/li><\/ul><p><img decoding=\"async\" class=\"mediacenter\" alt=\"\" src=\"https:\/\/digistump.com\/wiki\/_media\/digispark\/tutorials\/digispark_install.gif\" \/><\/p>\r\n<ul><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">You'll see the download progress on the bottom bar of the \"Boards Manager\" window, when complete it will show \"Installed\" next to that item on the list.<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/div><\/li><li class=\"level2\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">WINDOWS USERS: When complete the install with pop up a Driver Install Wizard window, please click \"Next\" on this Window to install the drivers for Digistump Boards<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> (If you already have them installed, this installer will update them and install any that are missing)<\/span><\/div><\/li><li class=\"level2\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">With the install complete, close the \"Boards Manager\" window and select the Digispark from the Tools\u2192Boards menu. \"Digispark (Default - 16.5mhz)\" is the board that should be selected by all new users. <\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/div><\/li><\/ul><p><img decoding=\"async\" class=\"mediacenter\" alt=\"\" src=\"https:\/\/digistump.com\/wiki\/_media\/digispark\/tutorials\/pickdigispark.gif\" \/><\/p>\r\n<ul><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The install is now complete!<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> (Linux users see note below)<\/span><\/div><\/li><\/ul><\/div><h3 class=\"sectionedit5\" id=\"linux_install\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Linux Install<\/span><\/h3><div class=\"level3\"><ul><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> If you haven't before - Install the udev rules found here: <\/span><a title=\"http:\/\/digistump.com\/wiki\/digispark\/tutorials\/linuxtroubleshooting\" class=\"urlextern\" href=\"http:\/\/digistump.com\/wiki\/digispark\/tutorials\/linuxtroubleshooting\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Troubleshooting section<\/span><\/a><\/div><\/li><\/ul><ul><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">ATTENTION LINUX USERS:<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><a title=\"digispark:tutorials:linuxtroubleshooting\" class=\"wikilink1\" href=\"https:\/\/digistump.com\/wiki\/digispark\/tutorials\/linuxtroubleshooting\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">PLEASE CHECKOUT THE LINUX TROUBLESHOOTING PAGE**<\/span><\/a><\/div><\/li><\/ul><\/div><h3 class=\"sectionedit6\" id=\"sources\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Sources<\/span><\/h3><div class=\"level3\"><p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Digistump Package Sources: <\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><a title=\"https:\/\/github.com\/digistump\/DigistumpArduino\" class=\"urlextern\" href=\"https:\/\/github.com\/digistump\/DigistumpArduino\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">https:\/\/github.com\/digistump\/DigistumpArduino<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<\/div><h2 class=\"sectionedit7\" id=\"using_the_digispark_with_the_arduino_ide\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Using the Digispark with the Arduino IDE:<\/span><\/h2><div class=\"level2\"><p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The Digispark works a bit differently than some Arduino compatible products. The Digispark programs with a different procedure. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">From the Tools menu select Board\u2192Digispark (Default - 16.5Mhz) <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">(The Tools\u2192Programmer selection does not matter) <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Write some code, open your code, or open a Digispark example. <\/span><\/p>\r\n<p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">You do not need to plug in your Digispark before invoking upload<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Hit the upload button. The bottom status box will now ask you to plug in your Digispark - at this point you need to  plug it in - or unplug and replug it. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">You'll see the upload progress and then it will immediately run your code on the Digispark. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">If you unplug the Digispark and plug it back in or attach it to another power source there will be a delay of 5 seconds before the code you programmed will run. This 5 second delay is the Digispark Pro checking to see if you are trying to program it. <\/span><\/p>\r\n<\/div><h2 class=\"sectionedit8\" id=\"your_first_upload\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Your first upload:<\/span><\/h2><div class=\"level2\"><p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">If you're just getting started try the above procedure with the example you can find by going to File\u2192Examples\u2192Digispark\u2192Start <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Here is the code it will load: <\/span><\/p>\r\n<pre class=\"code\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">\/\/ the setup routine runs once when you press reset:\r\nvoid setup() {                \r\n  \/\/ initialize the digital pin as an output.\r\n  pinMode(0, OUTPUT); \/\/LED on Model B\r\n  pinMode(1, OUTPUT); \/\/LED on Model A   \r\n}\r\n\r\n\/\/ the loop routine runs over and over again forever:\r\nvoid loop() {\r\n  digitalWrite(0, HIGH);   \/\/ turn the LED on (HIGH is the voltage level)\r\n  digitalWrite(1, HIGH);\r\n  delay(1000);               \/\/ wait for a second\r\n  digitalWrite(0, LOW);    \/\/ turn the LED off by making the voltage LOW\r\n  digitalWrite(1, LOW); \r\n  delay(1000);               \/\/ wait for a second\r\n}<\/span><\/pre>\n<!-- \/wp:syntaxhighlighter\/code -->\n<!-- \/wp:syntaxhighlighter\/code -->\n<!-- \/wp:syntaxhighlighter\/code -->\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">This code will blink the BUILTIN LED (on either pin 0 or pin 1 depending on the Digispark model see:<\/span><a title=\"digispark:tutorials:modelbi2c\" class=\"wikilink1\" href=\"https:\/\/digistump.com\/wiki\/digispark\/tutorials\/modelbi2c\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Model Identification<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\">). <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">As soon as it has uploaded you should see the LED start to blink! <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">For some sample code for the basic I\/O function see here: <\/span><a title=\"digispark:tutorials:basics\" class=\"wikilink1\" href=\"https:\/\/digistump.com\/wiki\/digispark\/tutorials\/basics\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Digispark Basics<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<\/div><h2 class=\"sectionedit9\" id=\"digispark_differences_and_using_arduinoprocessing_with_the_digispark\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Digispark Differences and Using Arduino\/Processing with the Digispark:<\/span><\/h2><div class=\"level2\"><p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The Arduino Environment introduction is a great start if you are new to the Arduino IDE: <\/span><a title=\"http:\/\/arduino.cc\/en\/Guide\/Environment\" class=\"urlextern\" href=\"http:\/\/arduino.cc\/en\/Guide\/Environment\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">http:\/\/arduino.cc\/en\/Guide\/Environment<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The Digispark supports all features found in the IDE with the exception of the serial monitor and the burn bootloader functionality.  <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Many existing libraries will not work with the Digispark: For I2C devices check out the TinyWireM library, which makes it super simple to port an I2C based device library over to use with the Digispark. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Pin outs: <\/span><\/p>\r\n<ul><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> All pins can be used as Digital I\/O<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Pin 0 \u2192 I2C SDA, PWM (LED on Model B)<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Pin 1 \u2192 PWM (LED on Model A)<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Pin 2 \u2192 I2C SCK, Analog<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Pin 3 \u2192 Analog In (also used for USB+ when USB is in use)<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Pin 4 \u2192 PWM, Analog (also used for USB- when USB is in use)<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Pin 5 \u2192 Analog In<\/span><\/div><\/li><\/ul><p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">For a handy pin reference flip over the Digispark - pin capabilities are listed on the back<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">For some sample code for the basic i\/o function see here: <\/span><a title=\"digispark:tutorials:basics\" class=\"wikilink1\" href=\"https:\/\/digistump.com\/wiki\/digispark\/tutorials\/basics\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Digispark Basics<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<\/div><h2 class=\"sectionedit10\" id=\"precautions\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Precautions:<\/span><\/h2><div class=\"level2\"><p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The Digispark, due to its small size and low cost is not as robust as a full blown Arduino. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">When testing a new circuit we recommend that you test it with an external power supply first. Connecting a shorted circuit to the Digispark and connecting it to your computer could damage your computer and\/or its USB ports. We take no responsibility for damage to your machine as a result of the use of a Digispark. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">We strongly recommend connecting your Digispark through a USB hub which will often limit the damage caused by a short circuit to the usb hub. For the record, we've found many computers have usb fuses built in, and when we blew them on our 27\" Mac monitor, thankfully they reset and everything worked after a power down.  <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The Digispark does not have short circuit or reverse polarity protection. Connecting power to the Digispark power pins backwards will almost certainly destroy it. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The Digispark is small enough to present a choking hazard and small enough to be inserted into some sockets. We take no responsibility for misuse of the product. Please treat electricity and electronics with respect and common sense.  <\/span><\/p>\r\n<\/div><h2 class=\"sectionedit11\" id=\"troubleshooting\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Troubleshooting:<\/span><\/h2><div class=\"level2\"><p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">The Digispark pushes affordable, small components to their limits by using software to emulate USB functions generally served by a dedicated chip. For this reason much of the Digispark's USB operation is considered borderline out of <\/span><abbr title=\"specification\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">spec<\/span><\/abbr><span style=\"font-family: Tahoma, Geneva, sans-serif;\">. Certain laptops, older machines, and just some cheaply made USB hubs\/controllers do not like this. We tested and designed the Digispark for maximum compatibility but we can not guarantee it will work with everything. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">In addition remember the Digispark only shows up as a programmable device for 5 seconds, after that it will start running its code (when it is new and un-programmed this means it will blink) and disappear or act like the USB device you programmed it to act like. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Always remember to unplug the Digispark before hitting upload and plug it in when the Arduino IDE requests you to. If you get an error that assertion failed or micronucleus crashed during upload then you probably did not unplug your Digispark before uploading. <\/span><\/p>\r\n<p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">If the computer will not recognize the Digispark try the following:<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<ul><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Try connecting it to another USB port or system.<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Try connecting it to the rear ports (if a desktop)<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Try connecting it to a USB hub.<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Try a powered USB hub.<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> Try a different cable.<\/span><\/div><\/li><\/ul><p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">If it won't upload:<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Did you set your board AND programmer to Digispark in the Arduino IDE?<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">WINDOWS:<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<ul><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Did you install the driver?<\/span><\/strong><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> For the example programs if you are getting \"Device not found\" even after installing the DigiUSB driver in the examples folder then try this: <\/span><a title=\"http:\/\/digistump.com\/board\/index.php\/topic,257.0.html\" class=\"urlextern\" href=\"http:\/\/digistump.com\/board\/index.php\/topic,257.0.html\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">http:\/\/digistump.com\/board\/index.php\/topic,257.0.html<\/span><\/a><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> If Windows does not recognize a \"DigiUSB\" but a generic \"HID-compliant device\"\/\"USB Input Device\" pair, go to the Device Manager, find in the \"Human Interface Devices\" category the USB Input Device with a vendor ID of 0x16C0 and select \"update driver\" \/ \"browse my computer\" \/ \"let me pick from a list\" and the DigiUSB should show up there.<\/span><\/div><\/li><\/ul><p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">MAC<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<ul><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> If the Arduino application works fine but the computer does not recognize the Digispark after you are asked to plug it in - try a usb extension cable or hub, some MacBook's ports are recessed too far for the data connectors to make contact. <\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">If the Arduino application won't start (especially an error like: \"Arduino\" is damaged and can't be opened.) or the upload fails try allowing all unsigned code to be run: See the \"How to change Gatekeeper settings to allow or disallow unidentified apps\" section on this page: <\/span><a title=\"http:\/\/www.imore.com\/how-open-apps-unidentified-developer-os-x-mountain-lion\" class=\"urlextern\" href=\"http:\/\/www.imore.com\/how-open-apps-unidentified-developer-os-x-mountain-lion\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">http:\/\/www.imore.com\/how-open-apps-unidentified-developer-os-x-mountain-lion<\/span><\/a><\/strong><\/div><\/li><li class=\"level1\"><div class=\"li\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> If you're getting the error above and allowing unidentified apps doesn't fix it try this: <\/span><a title=\"http:\/\/digistump.com\/board\/index.php\/topic,119.0.html\" class=\"urlextern\" href=\"http:\/\/digistump.com\/board\/index.php\/topic,119.0.html\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">http:\/\/digistump.com\/board\/index.php\/topic,119.0.html<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\">  - we are actively working on a fix for this issue.<\/span><\/div><\/li><li class=\"level1\"><div class=\"li\"><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">2012 MBP<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> The USB ports on the 2012 MBPs (Retina and non) cause issues due to their USB3 controllers, currently the best work around is to use a cheap USB hub (non USB3) - we are working on future solutions. The hub on a Cinema display will work as well.<\/span><\/div><\/li><\/ul><p><strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\">LINUX:<\/span><\/strong><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> See the <\/span><a title=\"digispark:tutorials:linuxtroubleshooting\" class=\"wikilink1\" href=\"https:\/\/digistump.com\/wiki\/digispark\/tutorials\/linuxtroubleshooting\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Linux troubleshooting page<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">If your upload fails in the middle of it, you may also be using a bad USB cord and or a bad hub. <\/span><\/p>\r\n<p><span style=\"font-family: Tahoma, Geneva, sans-serif;\">Support requests are best posted to the forum, so everyone can benefit and we can help each other through any issues - <\/span><a title=\"http:\/\/digistump.com\/board\" class=\"urlextern\" href=\"http:\/\/digistump.com\/board\" rel=\"nofollow\"><span style=\"font-family: Tahoma, Geneva, sans-serif;\">http:\/\/digistump.com\/board<\/span><\/a><span style=\"font-family: Tahoma, Geneva, sans-serif;\"> <\/span><\/p>\r\n<\/div><!-- \/wp:freeform -->","protected":false},"excerpt":{"rendered":"<p>\ucd9c\ucc98 : https:\/\/digistump.com\/wiki\/digispark\/tutorials\/connecting Bootloader: The bootloader is the code that is pre-programmed on your Digispark and allows it to act as a USB device so that it can be programmed by the Arduino IDE. The Digispark runs the &#8220;micronucleus tiny85&#8221; bootloader version 1.02, an open source project: https:\/\/github.com\/micronucleus\/micronucleus originally written by Bluebie: https:\/\/github.com\/Bluebie. CAUTION We [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[30],"tags":[],"class_list":["post-574","post","type-post","status-publish","format-standard","hentry","category-multi_copter_fc"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=574"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/574\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}