Explorar el Código

add analogWriteResolution()

main
PaulStoffregen hace 6 años
padre
commit
efc41ea92d
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. +9
    -1
      teensy4/pwm.c

+ 9
- 1
teensy4/pwm.c Ver fichero

@@ -296,7 +296,15 @@ void xbar_connect(unsigned int input, unsigned int output)

uint32_t analogWriteRes(uint32_t bits)
{
return 0;
uint32_t prior;
if (bits < 1) {
bits = 1;
} else if (bits > 16) {
bits = 16;
}
prior = analog_write_res;
analog_write_res = bits;
return prior;
}



Cargando…
Cancelar
Guardar