![]() Connecting a shorted circuit to the Digispark and connecting it to your computer could damage your computer and/or its USB ports. When testing a new circuit we recommend that you test it with an external power supply first. The Digispark, due to its small size and low cost is not as robust as a full blown Arduino. This code will blink the BUILTIN LED (on either pin 0 or pin 1 depending on the Digispark model see: Model Identification).Īs soon as it has uploaded you should see the LED start to blink!įor some sample code for the basic I/O function see here: Digispark Basics Digispark Differences and Using Arduino/Processing with the Digispark: the loop routine runs over and over again forever:ĭigitalWrite(0, HIGH) // turn the LED on (HIGH is the voltage level)ĭigitalWrite(0, LOW) // turn the LED off by making the voltage LOW initialize the digital pin as an output. Here is the code it will load: // the setup routine runs once when you press reset: If you're just getting started try the above procedure with the example you can find by going to File→Examples→Digispark→Start
0 Comments
Leave a Reply. |