mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-03 06:54:16 +01:00
As noticed in the #2472 Internal implemementation still lacks the support for the GPIO16, as it needs to use 'special' IO16 registers (and due to the fact that the 'normal' registers only fit in an u16[16], from 0 to 15, so internals need to change as well) One possible way is to attach certain implementation funcs to the struct handling the isr, avoiding a bunch of in-line checks for `pin == 16` Another option is to just use Core's `analogWrite`, which hides the implementation from us and should work pretty seamlessly. (...but, currently has 2 different waveform generator types, and it is not really clear which one is a better default, as it needs to be set at build-time)