attiny programs

Arduino/Teensy software/code questions and discussion
Post Reply
peeweejedi
Posts: 26
Joined: Wed Aug 09, 2017 5:00 am
Has thanked: 5 times

attiny programs

Post by peeweejedi » Wed Feb 14, 2018 7:17 pm

I have an attiny85 I am wondering if it can do
random(,)
if(){
}
or other Arduino logic commands
using the Arduino as the programmer

User avatar
moooarcuuuus
Posts: 232
Joined: Tue Jul 04, 2017 1:28 am
Has thanked: 2 times
Been thanked: 94 times

Re: attiny programs

Post by moooarcuuuus » Thu Feb 15, 2018 1:06 am

Yes you can. There are working bootloaders for attinyXX. I used https://github.com/damellis/attiny in the past.
Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep... Game Over

peeweejedi
Posts: 26
Joined: Wed Aug 09, 2017 5:00 am
Has thanked: 5 times

Re: attiny programs

Post by peeweejedi » Thu Feb 15, 2018 3:37 pm

can it do the map function

User avatar
moooarcuuuus
Posts: 232
Joined: Tue Jul 04, 2017 1:28 am
Has thanked: 2 times
Been thanked: 94 times

Re: attiny programs

Post by moooarcuuuus » Thu Feb 15, 2018 11:41 pm

Is that a question? You can always write a map function.
Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep... Game Over

User avatar
abrugsch
Posts: 971
Joined: Tue Aug 02, 2016 10:00 am
Has thanked: 356 times
Been thanked: 430 times
Contact:

Re: attiny programs

Post by abrugsch » Fri Feb 16, 2018 1:49 am

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

peeweejedi
Posts: 26
Joined: Wed Aug 09, 2017 5:00 am
Has thanked: 5 times

Re: attiny programs

Post by peeweejedi » Sun Feb 18, 2018 7:36 pm

thank you all

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests