Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 6383

ATtiny is a family of small, low-power 8-bit RISC microcontrollers from Atmel. Commonly found in smaller Arduino prototyping platform boards and projects.

8
votes
A minimal software PWM could look like this: volatile uint16_t dutyCycle; uint8_t currentPwmCount; ISR(TIM0_COMPA_vect){ const uint8_t cnt = currentPwmCount + 1; // will overflow from 255 to 0 …
answered Jul 24 '18 by JimmyB
7
votes
With avr-gcc the EEMEM macro can be used on the definition of a variable, see the libc docs and an example here: #include <avr/eeprom.h> char myEepromString[] EEMEM = "Hello World!"; declares the a …
answered Mar 27 '13 by JimmyB
2
votes
You go to sleep unconditionally in every iteration of loop(). That's not what you want. The way your code is now, you'll miss every wake up event that happens while your normal program code runs. You …
answered Sep 20 '16 by JimmyB