User Tools

Site Tools


digispark:tutorials:pinguide

Differences

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

Link to this comparison view

Next revision
Previous revision
digispark:tutorials:pinguide [2013/12/31 22:16]
wilko created
digispark:tutorials:pinguide [2016/06/09 12:03] (current)
Line 3: Line 3:
 This table details the function of each pin on the Digispark and any notes the are relevant. This table details the function of each pin on the Digispark and any notes the are relevant.
  
-^Pin Number ^Output Voltage ^Analogue Port Number ^PWM        ^USB                ^Test LED ^I2C  ^ + Pin \\ Number ​  Output ​\\ Voltage ​  Analogue Port Number ​\\ ''​analogRead()''  ​ PWM   USB   Test \\ LED   I2C  ​^ ​ SPI*  ^ 
-|0          |5v             |                     |Y - 504 Hz |                   |Rev 1    |SDA  | +|0          |5 V            ​|                     |Y - 504 Hz |                   |Rev 1    |SDA  ​| ​ MISO  | 
-|1          |5v             |                     |Y - 504 Hz |                   |Rev 2 / 4|     | +|1          |5 V            ​|                     |Y - 504 Hz |                   |Rev 2 / 4|     |  MOSI  ​
-|2          |5v             |1                    |           ​| ​                  ​| ​        ​|SCL ​ | +|2          |5 V            ​|1                    |           ​| ​                  ​| ​        ​|SCL  ​|  SCK   
-|3          |5v             |3                    |           |Y - 1.5k Ohm to 5v         |     +|3          |3.6 V          ​|3                    |           |Y - 1.5k Ohm to 5 V \\ Zener diode (3.6 V maximum in- & output) ​| | 
-|4          |5v             |2                    |Y - 1007 Hz|Y                          ​    ​+|4          |3.6 V          ​|2                    |Y - 1007 Hz|Y \\ Zener diode (3.6 V maximum in- & output) ​  | | | 
-|5          |3v             |0                    |           ​| ​                  ​| ​        ​| ​    |+|5          |3 V            ​|0                    |           ​| ​                  ​| ​        ​| ​    | 
 + 
 +* Note that the labeling of the pins for SPI is somewhat misleading. The table above is correct, as MISO is actually DI and MOSI is DO, but for use with ISP MISO and MOSI are swapped.
digispark/tutorials/pinguide.1388557013.txt.gz · Last modified: 2013/12/31 22:16 by wilko