Arduino Digispark ATtiny85 with micro-USB is the smallest Arduino controller. Despite the small number of pins, the controller has serious functionality at its disposal (ADC, PWM, I2C, SPI, etc.). The controller provides you with six I / O ports, 2 of which are used for USB. You can also use all 6 ports in your projects, even if you program the controller via the USB port. The controller board uses automatic selection of the power supply from the micro-USB connector, from an external source of 5V or 7 - 35 V. For firmware of the controller and writing sketches, you can use the Arduino IDE. Thanks to its support for the Arduino IDE, Digispark is ideal for first acquaintance with Arduino. Use a development environment version not lower than Arduino IDE 1.6.5
All pins can be digital I / O
P0 - I2C SDA, PWM
P1 - PWM
P2 - I2C SCK, Analog input
P3 - Analog input (USB +, when using USD)
P4 - PWM (USB-, when using USD)
P5 - Analog input
void setup (); pinMode (1, OUTPUT); void loop () { digitalWrite (1, HIGH); delay (1000); digitalWrite (1, LOW); delay (1000);
No posts found