wesleytabaka-rpi-led-matrix
Version:
Fork of alexeden/rpi-led-matrix. Node.js/Typescript bindings for hzeller/rpi-rgb-led-matrix
27 lines (24 loc) • 611 B
text/typescript
import {
GpioMapping,
LedMatrix,
LedMatrixUtils,
MatrixOptions,
PixelMapperType,
RuntimeOptions,
} from '../src';
export const matrixOptions: MatrixOptions = {
...LedMatrix.defaultMatrixOptions(),
rows: 32,
cols: 64,
chainLength: 2,
hardwareMapping: GpioMapping.Regular,
parallel: 1,
// pixelMapperConfig: LedMatrixUtils.encodeMappers(
// { type: PixelMapperType.Chainlink }
// ),
// pixelMapperConfig: LedMatrixUtils.encodeMappers({ type: PixelMapperType.U }),
};
export const runtimeOptions: RuntimeOptions = {
...LedMatrix.defaultRuntimeOptions(),
gpioSlowdown: 4,
};