import { MatrixOptions , LedMatrix , LedMatrixUtils , PixelMapperType , RuntimeOptions , } from "rpi-led-matrix" ; export const defaultMatrixOptions = { ... LedMatrix . defaultMatrixOptions ( ) , rows : 64 , cols : 64 , chainLength : 2 , parallel : 3 , pixelMapperConfig : LedMatrixUtils . encodeMappers ( { type : PixelMapperType . U } ) , showRefreshRate : false , pwmDitherBits : 2 , brightness : 100 , } as const ; LedMatrixUtils . encodeMappers ( ) ; export const defaultMatrixRuntimeOptions = { ... LedMatrix . defaultRuntimeOptions ( ) , gpioSlowdown : 3 , } as const ; export const createMatrix = ( matrixOptionOverrides ? , runtimeOverrides ? ) => new LedMatrix ( { ... defaultMatrixOptions , ... matrixOptionOverrides } , { ... defaultMatrixRuntimeOptions , ... runtimeOverrides } ) ;