Page 1 of 1

attiny programs

Posted: Wed Feb 14, 2018 7:17 pm
by peeweejedi
I have an attiny85 I am wondering if it can do
random(,)
if(){
}
or other Arduino logic commands
using the Arduino as the programmer

Re: attiny programs

Posted: Thu Feb 15, 2018 1:06 am
by moooarcuuuus
Yes you can. There are working bootloaders for attinyXX. I used https://github.com/damellis/attiny in the past.

Re: attiny programs

Posted: Thu Feb 15, 2018 3:37 pm
by peeweejedi
can it do the map function

Re: attiny programs

Posted: Thu Feb 15, 2018 11:41 pm
by moooarcuuuus
Is that a question? You can always write a map function.

Re: attiny programs

Posted: Fri Feb 16, 2018 1:49 am
by abrugsch
as long as there's enough memory space then you can use any arduino library you need. it's just C++. map doesn't use any special CPU instructions that the tiny is unlikely to have (it's just a fancy list) so flash memory is going to be your biggest problem with the tiny range. but they are still very capable chips

Re: attiny programs

Posted: Sun Feb 18, 2018 7:36 pm
by peeweejedi
thank you all