2016-08-30 11:51:32 -07:00
|
|
|
namespace pxsim {
|
|
|
|
export function sendBufferAsm(buffer: Buffer, pin: DigitalPin) {
|
|
|
|
let b = board();
|
|
|
|
if (b) {
|
|
|
|
let np = b.neopixelState;
|
|
|
|
if (np) {
|
2017-12-12 10:55:00 -08:00
|
|
|
let buf = <Uint8Array>(<any>buffer).data;
|
2016-09-13 13:09:02 -07:00
|
|
|
np.updateBuffer(buf, pin);
|
2016-08-30 11:51:32 -07:00
|
|
|
runtime.queueDisplayUpdate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|