The values returned from the power() method appear to rise too rapidly as LEDs are successively lit. This value also tops out well before all LEDs in a strip have been lit.
ledoffset is defined inside the power() method but never used. I presume that this variable should be used in the following line:
p += this.buf[i + j]; as observed elsewhere in the code?
The values returned from the
power()
method appear to rise too rapidly as LEDs are successively lit. This value also tops out well before all LEDs in a strip have been lit.Please see the serial output in this example: https://makecode.microbit.org/31482-02041-35523-64723
ledoffset
is defined inside thepower()
method but never used. I presume that this variable should be used in the following line:p += this.buf[i + j];
as observed elsewhere in the code?