Files
espurna/code
Maxim Prokhorov b9db535950 light: fix out-of-bounds access when using GPIO16
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)
2021-10-03 20:44:58 +03:00
..
2019-07-11 00:34:17 +03:00
2021-10-03 20:44:58 +03:00
2019-07-11 00:34:17 +03:00
2019-07-11 00:34:17 +03:00