2016-08-30 20:51:32 +02:00
|
|
|
namespace pxsim {
|
2019-12-02 05:58:26 +01:00
|
|
|
export function sendBufferAsm(buffer: RefBuffer, pin: DigitalPin) {
|
2016-08-30 20:51:32 +02:00
|
|
|
let b = board();
|
|
|
|
if (b) {
|
|
|
|
let np = b.neopixelState;
|
|
|
|
if (np) {
|
2019-12-02 05:58:26 +01:00
|
|
|
let buf = buffer.data;
|
|
|
|
np.updateBuffer(buf as any, pin); // TODO this is wrong
|
2016-08-30 20:51:32 +02:00
|
|
|
runtime.queueDisplayUpdate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|