polypagan:
I am not understanding your code
while(digitalRead(buts) ==LOW);
digitalWrite(led, LOW);
while(true);
While syntax is:
while condition statement
";" is a null statement.
while(digitalRead (buts) == LOW) {
; // wait here
}
...
while (true) {
; // wait forever
}
Is that what you meant?
Indeed. of course I tried your way too, before posting. Didn't help.
(; is a null statement, meaning it's a statement nonetheless)
hiduino:
You may want to try smeezekitty's core13. I've had good results with this one.
core13: An Arduino core for the Attiny13 *testers wanted* - Microcontrollers - Arduino Forum
see attached file.
The code i'm using is from instructables, I'll try this when I get home.
Unfortunately, that will be Thursday.
Paul__B:
nirnir93:
5. EDIT: Whoa, image sige!
available here.
I do think you should measure those resistors. My interpretation of the coding is that they are 120 ohm 1%. The photo does leave much to be desired (in figuring out the colours) and it is much better to post things here ("Additional Options...") than to use troublesome websites like "dropbox", especially when they are clearly marked as bad sites with the message "The Dropbox website requires JavaScript.".
nirnir93:
8. Also, I forgot to say that I can't do delay. either by delay(ms); or by for(int i=0;i<10000000;i++);. it does nothing. the program keeps looping without delaying any (noticeable by the human eye) time at all.
I was myself thinking that you were using some bizarre code, but - that's another matter; I was concentrating on that resistor as the problem.
Sorry about Dropbox, as you can see I'm new here =]. Next time I'll know.
I'll try hiduino's code on Thursday, and I'll measure the resistors then. But if you look at the picture as upside-down, it can bee 10k 1% too. Stupid color code.
Any, thanks everybody! As I said, I'll update on Thursday! Have a good week!