[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.842386 [View]
File: 66 KB, 897x210, ATtiny-Pinouts-8.jpg [View same] [iqdb] [saucenao] [google]
842386

Ok so I know with IC interrupts you have a main program running and then an ISR starts when the interrupt is triggered and it runs then the IC goes back to its normal program. But how would you make the IC do nothing UNTIL an external signal is detected? Do you just run an empty loop the majority of the time and have the program you want to run be the ISR? Or is there usually a sleep mode or something used? My end goal is to the have an event trigger a program and then run continuously until the IC is manually reset.

>> No.818781 [View]
File: 66 KB, 897x210, ATtiny-Pinouts-8.jpg [View same] [iqdb] [saucenao] [google]
818781

>>818778
the thing is there's a ton of tutorials that make the thing basically legos with copy and paste code so a lot of people just play with it like that. It is pretty stupid to put a $30 board into something just to make LEDs blink but on the other hand, most people aren't engineers so learning to work directly with the chips is overkill.

Navigation
View posts[+24][+48][+96]