prealpha

Arduino core for Attiny13

User Ratings

★★★★★
★★★★
★★★
★★
3
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
Write a Review

User Reviews

  • wrzaskun
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    I used this code to test: int ledPin = 0; // led PB0 int inPin = 3; // button PB3 int val = 0; // variable for reading the pin status void setup() { pinMode(ledPin, OUTPUT); // declare LED as output pinMode(inPin, INPUT); // declare pushbutton as input } void loop(){ val = digitalRead(inPin); // read input value if (val == HIGH) { // check if the input is HIGH (button released) digitalWrite(ledPin, LOW); // turn LED OFF } else { digitalWrite(ledPin, HIGH); // turn LED ON } } compile succesfull but digitalRead is not working on attiny13A :/

    Posted 01/29/2013
  • oid-3948883
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Thanks a lot for your works.... If you like, i have do a full support for the micros() function (that i need in 1 of my project)!!! If you use only the micros(), it use less space!!! Here is the code to add in the Wiring.C : unsigned long micros(){ unsigned long x; asm("cli"); /*Scale number of timer millisecondoverflows tos*/ #if F_CPU == 128000 x = ovrf * 2000; #elif F_CPU == 600000 x = ovrf * 427; #elif F_CPU == 1000000 x = ovrf * 256; #elif F_CPU == 1200000 x = ovrf * 213; #elif F_CPU == 4000000 x = ovrf * 64; #elif F_CPU == 4800000 x = ovrf * 53; #elif F_CPU == 8000000 x = ovrf * 32; #elif F_CPU == 9600000 x = ovrf * 27; #elif F_CPU == 10000000 x = ovrf * 26; #elif F_CPU == 12000000 x = ovrf * 21; #elif F_CPU == 16000000 x = ovrf * 16; #else #error This CPU frequency is not defined #endif asm("sei"); return x; }

    Posted 08/18/2012
  • oid-3644015
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    thanks for great work! but currently I'm not able to run ATtiny13V if any analogRead or digitalRead occurs in the code.

    Posted 07/16/2012