This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define pwmOut (1 << PD3) // Porta 3 | |
| void setDuty_pin03(float valueD); // Seleciona o %DC na saída digital 3 | |
| void setFreq(char option); // Seleciona a frequência de operação do PWM | |
| char duc = 0; // Duty cycle 0 a 100% | |
| ISR(TIMER0_COMPA_vect) { // Vetor para interrupção por overflow do Timer0 | |
| duc++; |