Microcontroller inputs in C language? Answered
I'm having problems finding and figuring how to do inputs with mirocontrollers VIA button press >> led goes on.
(I have a ATTINY2313)
Outputs are as simple as PORTB = 0x10 (being hex for pin 16). Keep in mind I'm very new to micros and C. The most I've done was fast-slow blink patterns. How can i do inputs though? SIMPLE code sample is welcomed!