User Tools

Site Tools


digispark:tutorials:robot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
digispark:tutorials:robot [2014/12/05 22:24]
digistump
digispark:tutorials:robot [2016/06/09 12:03] (current)
Line 2: Line 2:
  
 =====Product Description:​===== =====Product Description:​=====
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]] +[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot1.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot1.JPG}}]] 
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot2.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot2.JPG}}]] 
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot17.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot17.JPG}}]]
  
-This is an unassembled kit and requires basic soldering. This is designed for use with the Digispark development board, which is not included.+This is an unassembled kit and requires basic soldering. This is designed for use with the Digispark ​Pro or Oak development board.
  
 =====Parts:​===== =====Parts:​=====
  
 ^ Part       ^ Quantity ​         ^Notes^ ^ Part       ^ Quantity ​         ^Notes^
-| Digispark Pro|1| | +| Digispark Pro or Oak|1| | 
 | 9 Pin Female Header 0.1" Pitch|2| |  | 9 Pin Female Header 0.1" Pitch|2| | 
-| 3 Pin Female Header 0.1" Pitch|1 (or 2)| 2 ARE ONLY INCLUDED WITH: BT, BLE, and WiFi Robots (see note) |  +| 3 Pin Female Header 0.1" Pitch|1 (or 2)| 2 ARE ONLY INCLUDED WITH: BT, BLE, and Pro WiFi Robots (see note) |  
-| 9 Pin Stackable Female Header 0.1" Pitch|2| ONLY INCLUDED WITH: BT, BLE, and WiFi Robots (see note) |+| 9 Pin Stackable Female Header 0.1" Pitch|2| ONLY INCLUDED WITH: BT, BLE, and Pro WiFi Robots (see note) |
 | 3 Pin 3.5mm Screw Terminal |1| | | 3 Pin 3.5mm Screw Terminal |1| |
 | 2 Pin 3.5mm Screw Terminal |3| | | 2 Pin 3.5mm Screw Terminal |3| |
Line 19: Line 20:
 | Motor Driver |1| | | Motor Driver |1| |
 | Bag of Hardware |1| | | Bag of Hardware |1| |
-| Small Machine Screw for Mounting Digispark and Motor Driver |2| May be separate from hardware bag| +| Small Machine Screw for Mounting Digispark and Motor Driver |2 or 1| May be separate from hardware bag, only 1 with Oak Robot
-| Small Nut to go with Machine Screws |2| May be separate from hardware bag| +| Small Nut to go with Machine Screws |2 or 1| May be separate from hardware bag, only 1 with Oak Robot
-| 1x40pin male 0.1" pitch header| 9 pins worth| ​ NOT INCLUDED WITH: BT, BLE, and WiFi Robots (see note)  |+| 1x40pin male 0.1" pitch header| 9 pins worth| ​ NOT INCLUDED WITH: BT, BLE, and Pro WiFi Robots (see note)  |
 | 14" Piece of Solid Core Wire |2| Color is random, but the two pieces should be different colors| | 14" Piece of Solid Core Wire |2| Color is random, but the two pieces should be different colors|
 | Wheels |2| | | Wheels |2| |
Line 29: Line 30:
 | Male to Female Jumper Wire |6| May be attached together, may not be| | Male to Female Jumper Wire |6| May be attached together, may not be|
 | Motors |2| | | Motors |2| |
-| BT, BLE, or WiFi kit - if applicable |1| These may or may not be in the bag with the robot parts, please check the envelope well|+| BT, BLE, or Pro WiFi kit - if applicable |1| These may or may not be in the bag with the robot parts, please check the envelope well|
  
 **NOTE ON HEADERS:** Basic Robot kits were supposed to ship without stackable headers and with a 1x40 pin male header strip. Many shipped with the stackable headers instead - we encourage you to use some extra male headers from another kit to complete the Wings Kit and then use the stackable headers for any Pro kit you have (you end up with a free set of stackables!) - if you don't have any male headers to spare, please contact us so we can make it right. **NOTE ON HEADERS:** Basic Robot kits were supposed to ship without stackable headers and with a 1x40 pin male header strip. Many shipped with the stackable headers instead - we encourage you to use some extra male headers from another kit to complete the Wings Kit and then use the stackable headers for any Pro kit you have (you end up with a free set of stackables!) - if you don't have any male headers to spare, please contact us so we can make it right.
Line 47: Line 48:
  
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]] +[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot1.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot1.JPG}}]] 
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot2.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot2.JPG}}]]
  
  
Line 55: Line 56:
 Solder the female (non-stackable) headers to your Digispark Pro. Solder the female (non-stackable) headers to your Digispark Pro.
  
-Assemble the Wings Kits - using the male headers from the BLE, BT, WiFi Kit or extra ones - per the instructions here: http://​digistump.com/​wiki/​digispark/​tutorials/​wings+Assemble the Wings Kits - using the male headers from the BLE, BT, WiFi Kit or extra ones - per the instructions here: http://​digistump.com/​wiki/​digispark/​tutorials/​wings ​**NOTE** On the Oak the 5V pin is actually for 3.3V
  
-Assemble the BT, BLE, or WiFi kit (using the correct tutorial for that kit) if applicable - using the included 9 pin stackable headers and the extra 3 pin female header.+Assemble the BT, BLE, or WiFi kit (using the correct tutorial for that kit) if applicable - using the included 9 pin stackable headers and the extra 3 pin female header. See the following photos for an example of how it should look with those headers (this is a BT shield, but the BLE and WiFi header setup would be the same): 
 + 
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​blestack1.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​blestack1.JPG}}]] 
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​blestack2.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​blestack2.JPG}}]] 
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​blestack3.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​blestack3.JPG}}]] 
 + 
 +Remove the paper from the Acrylic base: 
 +Carefully peel the paper off each side of the Acrylic base - it is to protect it in shipping. It is left on for these photos, so that it shows up on camera
  
  
 Cut the two approx. 14" lengths of wire in half, so you have two of each color. Strip all ends of the wires. Solder two wires (one of each color) to each motor, on to the little copper colored metal tabs. Apply a fair amount of solder, and be careful, the tabs are somewhat delicate and can break off the motor. Cut the two approx. 14" lengths of wire in half, so you have two of each color. Strip all ends of the wires. Solder two wires (one of each color) to each motor, on to the little copper colored metal tabs. Apply a fair amount of solder, and be careful, the tabs are somewhat delicate and can break off the motor.
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot3.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot3.JPG}}]] 
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot4.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot4.JPG}}]]
  
 Find the two metal blocks in the hardware bag and the four longest bolts. Pass the bolts through the motor housing as shown - and through the block - put nuts on the end of the bolt that comes through the block and tighten. Find the two metal blocks in the hardware bag and the four longest bolts. Pass the bolts through the motor housing as shown - and through the block - put nuts on the end of the bolt that comes through the block and tighten.
Line 68: Line 77:
 Repeat for the other motor, flipping the side the two holes on the narrow top of the block are on, so that they line up with the holes in the acrylic when the motors are mounted as shown. Repeat for the other motor, flipping the side the two holes on the narrow top of the block are on, so that they line up with the holes in the acrylic when the motors are mounted as shown.
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot5.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot5.JPG}}]]
  
-Carefully press the wheels on to the motors.+Mount the motors ​to the acrylic base as shown, using two (per mount) of the short pan head screws. Thread each screw in a little, and then tighten alternating between the screws - this will ensure they are able to tighten despite the natural variances in acrylic
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot6.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot6.JPG}}]]
  
-Mount the motors ​to the acrylic base as shown, using two (per mount) of the short pan head screwsThread each screw in a little, and then tighten alternating between the screws - this will ensure they are able to tighten despite the natural variances in acrylic+Carefully press the wheels on to the motors. 
 + 
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot7.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot7.JPG}}]]
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]] 
  
 Attach the 4 brass standoffs to the swivel wheel using 4 nuts.  Attach the 4 brass standoffs to the swivel wheel using 4 nuts. 
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot8.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot8.JPG}}]]
  
 Attach the swivel wheel assembly as shown to the Acrylic, using 4 pan head screws. Attach the swivel wheel assembly as shown to the Acrylic, using 4 pan head screws.
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot9.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot9.JPG}}]]
  
 Attach the battery holder as shown using two pan head screw going down through it and the acrylic into two nuts. You will have to push the screws down with a screwdriver,​ while holding the nuts in place to get them to "​bite"​ and tighten. Attach the battery holder as shown using two pan head screw going down through it and the acrylic into two nuts. You will have to push the screws down with a screwdriver,​ while holding the nuts in place to get them to "​bite"​ and tighten.
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot10.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot10.JPG}}]]
  
 Mount the Motor Driver board to the Acrylic base using one of the thinner screws and smaller nuts. Mount the Motor Driver board to the Acrylic base using one of the thinner screws and smaller nuts.
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot11.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot11.JPG}}]]
  
 Mount the Digispark Pro board to the Acrylic base using one of the thinner screws and smaller nuts. Mount the Digispark Pro board to the Acrylic base using one of the thinner screws and smaller nuts.
 +(Note: Skip this step with the Oak - it lacks mounting hole - you may want to use zip-ties, tape, or glue to mount it)
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot12.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot12.JPG}}]]
  
-Non-Basic Kit: Attach the BLE, BT, or WiFi kit to the Digispark Pro and then the Wings shield on top of that.+Non-Basic Kit: Attach the BLE, BT, or WiFi kit to the Digispark Pro and then the Wings shield on top of that. As shown (BT in this example, but the stack order is the same for BLE and WiFi).
  
-Basic KitAttach the Wings Shield kit to the Digispark Pro.+[[https://s3.amazonaws.com/​digispark/​images/​m/​robotstack.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​robotstack.JPG}}]]
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+Basic Kit: Attach the Wings Shield kit to the Digispark Pro. As shown. 
 + 
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot14.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot14.JPG}}]]
  
 Attach the wires from one motor to the screw terminals on the Motor Driver labeled "​A",​ and from the other to the ones labeled "​B"​ Attach the wires from one motor to the screw terminals on the Motor Driver labeled "​A",​ and from the other to the ones labeled "​B"​
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot13.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot13.JPG}}]]
  
 Attach the jumper wires from the VCC and GND pins of the Motor Driver to the VIN and GND screw terminals on the Wings Shield. Also attached the black wire from the battery holder to the GND terminal on the wings shield. And the red wire to the VIN terminal on the Wings shield. It may be easier to solder the battery wires to the pins of the jumper wires before putting them both in the screw terminal together. ​ Attach the jumper wires from the VCC and GND pins of the Motor Driver to the VIN and GND screw terminals on the Wings Shield. Also attached the black wire from the battery holder to the GND terminal on the wings shield. And the red wire to the VIN terminal on the Wings shield. It may be easier to solder the battery wires to the pins of the jumper wires before putting them both in the screw terminal together. ​
- 
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]] 
  
 Attach the jumper wires from the A-A and A-B pins on the Motor Driver to Pin 0 and Pin 2 of the Wings shield, respectively. ​ Attach the jumper wires from the A-A and A-B pins on the Motor Driver to Pin 0 and Pin 2 of the Wings shield, respectively. ​
Line 116: Line 127:
 Attach the jumper wires from the B-A and B-B pins on the Motor Driver to Pin 1 and Pin 5 of the Wings shield, respectively. ​ Attach the jumper wires from the B-A and B-B pins on the Motor Driver to Pin 1 and Pin 5 of the Wings shield, respectively. ​
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot14.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot14.JPG}}]]
  
 Use tape, glue, or zip-ties (not included) to organize the wires if desired.  ​ Use tape, glue, or zip-ties (not included) to organize the wires if desired.  ​
  
-[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot.jpg}}]]+[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot15.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot15.JPG}}]] 
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot16.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot16.JPG}}]] 
  
 Insert batteries (before plugging the Digispark into the computer, or remove the wings shield before plugging it in!) - and then plug the Digispark Pro into the computer and upload the test code. If the wheels are not moving the same direction then flip the wires for one motor going into the motor driver. If both wheels are going the wrong way (backward instead of forward), then flip both sets. Insert batteries (before plugging the Digispark into the computer, or remove the wings shield before plugging it in!) - and then plug the Digispark Pro into the computer and upload the test code. If the wheels are not moving the same direction then flip the wires for one motor going into the motor driver. If both wheels are going the wrong way (backward instead of forward), then flip both sets.
  
 Your Robot is Complete! Your Robot is Complete!
 +
 +[[https://​s3.amazonaws.com/​digispark/​images/​m/​bot17.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​bot17.JPG}}]]
  
 =====Programming:​===== =====Programming:​=====
 +
 +**NOTE**: The example included with the Oak is incorrect - please use the Oak example below.
 +
 +Copy and upload the following sketch. This sketch will cause the bot to cycle through each of its movement abilities at full speed, 5 seconds each.
 +
 +BT, BLE, and WiFi Examples included with the IDE.
 +
 +**For the Digispark/​Digispark Pro:**
 +<code arduino>
 +void setup() {
 +  // put your setup code here, to run once:
 +  botInit();
 +}
 +
 +
 +void loop() {
 +  // put your main code here, to run repeatedly:
 +  botForward(255);​ //speed can be any value from 0 (stopped) to 255 (full)
 +  delay(5000);​
 +  botReverse(255);​
 +  delay(5000);​
 +  botRight(255);​
 +  delay(5000);​
 +  botHardRight(255);​
 +  delay(5000);​
 +  botLeft(255);​
 +  delay(5000);​
 +  botHardLeft(255);​
 +  delay(5000);​
 +  botStop();
 +  delay(5000);​
 +}
 +
 +void botForward(int botSpeed){
 + ​digitalWrite(2,​ HIGH); ​
 + ​digitalWrite(5,​ HIGH);
 + ​analogWrite(0,​ 255 - botSpeed);
 + ​analogWrite(1,​ 255 - botSpeed);
 +}
 +
 +void botReverse(int botSpeed){
 + ​digitalWrite(2,​ LOW); 
 + ​digitalWrite(5,​ LOW);
 + ​analogWrite(0,​ botSpeed);
 + ​analogWrite(1,​ botSpeed);
 +}
 +
 +void botRight(int botSpeed){
 + ​digitalWrite(2,​ LOW); 
 + ​digitalWrite(5,​ HIGH);
 + ​analogWrite(0,​ 0);
 + ​analogWrite(1,​ 255 - botSpeed);
 +}
 +
 +void botHardRight(int botSpeed){
 + ​digitalWrite(2,​ LOW); 
 + ​digitalWrite(5,​ HIGH);
 + ​analogWrite(0,​ botSpeed);
 + ​analogWrite(1,​ 255 - botSpeed);
 +}
 +
 +void botLeft(int botSpeed){
 + ​digitalWrite(2,​ HIGH); ​
 + ​digitalWrite(5,​ LOW);
 + ​analogWrite(0,​ 255 - botSpeed);
 + ​analogWrite(1,​ 0);
 +}
 +
 +void botHardLeft(int botSpeed){
 + ​digitalWrite(2,​ HIGH); ​
 + ​digitalWrite(5,​ LOW);
 + ​analogWrite(0,​ 255 - botSpeed);
 + ​analogWrite(1,​ botSpeed);
 +}
 +
 +void botStop(){
 + ​digitalWrite(2,​LOW); ​
 + ​digitalWrite(5,​LOW);​
 + ​analogWrite(0,​0);​
 + ​analogWrite(1,​0);​
 +}
 +
 +void botInit(){
 + ​pinMode(0,​OUTPUT);​
 + ​pinMode(1,​OUTPUT);​
 + ​pinMode(2,​OUTPUT);​
 + ​pinMode(5,​OUTPUT);​
 +}
 +</​code>​
 +
 +
 +
 +**For the Oak:**
 +<code arduino>
 +void setup() {
 +  // put your setup code here, to run once:
 +  botInit();
 +}
 +
 +
 +void loop() {
 +  // put your main code here, to run repeatedly:
 +  botForward(1023);​ //speed can be any value from 0 (stopped) to 1023 (full)
 +  delay(5000);​
 +  botReverse(1023);​
 +  delay(5000);​
 +  botRight(1023);​
 +  delay(5000);​
 +  botHardRight(1023);​
 +  delay(5000);​
 +  botLeft(1023);​
 +  delay(5000);​
 +  botHardLeft(1023);​
 +  delay(5000);​
 +  botStop();
 +  delay(5000);​
 +}
 +
 +void botForward(int botSpeed){
 + ​digitalWrite(2,​ HIGH); ​
 + ​digitalWrite(5,​ HIGH);
 + ​analogWrite(0,​ 1023 - botSpeed);
 + ​analogWrite(1,​ 1023 - botSpeed);
 +}
 +
 +void botReverse(int botSpeed){
 + ​digitalWrite(2,​ LOW); 
 + ​digitalWrite(5,​ LOW);
 + ​analogWrite(0,​ botSpeed);
 + ​analogWrite(1,​ botSpeed);
 +}
 +
 +void botRight(int botSpeed){
 + ​digitalWrite(2,​ LOW); 
 + ​digitalWrite(5,​ HIGH);
 + ​analogWrite(0,​ 0);
 + ​analogWrite(1,​ 1023 - botSpeed);
 +}
 +
 +void botHardRight(int botSpeed){
 + ​digitalWrite(2,​ LOW); 
 + ​digitalWrite(5,​ HIGH);
 + ​analogWrite(0,​ botSpeed);
 + ​analogWrite(1,​ 1023 - botSpeed);
 +}
 +
 +void botLeft(int botSpeed){
 + ​digitalWrite(2,​ HIGH); ​
 + ​digitalWrite(5,​ LOW);
 + ​analogWrite(0,​ 1023 - botSpeed);
 + ​analogWrite(1,​ 0);
 +}
 +
 +void botHardLeft(int botSpeed){
 + ​digitalWrite(2,​ HIGH); ​
 + ​digitalWrite(5,​ LOW);
 + ​analogWrite(0,​ 1023 - botSpeed);
 + ​analogWrite(1,​ botSpeed);
 +}
 +
 +void botStop(){
 + ​digitalWrite(2,​LOW); ​
 + ​digitalWrite(5,​LOW);​
 + ​analogWrite(0,​0);​
 + ​analogWrite(1,​0);​
 +}
 +
 +void botInit(){
 + ​pinMode(0,​OUTPUT);​
 + ​pinMode(1,​OUTPUT);​
 + ​pinMode(2,​OUTPUT);​
 + ​pinMode(5,​OUTPUT);​
 +}
 +</​code>​
digispark/tutorials/robot.1417847063.txt.gz · Last modified: 2014/12/05 22:24 by digistump