public void DmdDraw(byte[] bytes) { if (!dmdConfigured) { DMDConfig dmdConfig = new DMDConfig(kDMDColumns, kDMDRows); DMDConfigPopulateDefaults(ref dmdConfig); PinProc.PRDMDUpdateConfig(ProcHandle, ref dmdConfig); dmdConfigured = true; } PinProc.PRDMDDraw(ProcHandle, bytes); }
public void DmdDraw(Frame frame) { if (!dmdConfigured) { DMDConfig dmdConfig = new DMDConfig(kDMDColumns, kDMDRows); DMDConfigPopulateDefaults(ref dmdConfig); PinProc.PRDMDUpdateConfig(ProcHandle, ref dmdConfig); dmdConfigured = true; } //dmd_draw(testFrame); byte[] dots = new byte[4 * kDMDColumns * kDMDRows / 8]; DMDGlobals.DMDFrameCopyPROCSubframes(ref frame.frame, dots, kDMDColumns, kDMDRows, 4, dmdMapping); DmdDraw(dots); }
public void DmdUpdateConfig(ushort[] high_cycles) { DMDConfig dmdConfig = new DMDConfig(); DMDConfigPopulateDefaults(ref dmdConfig); if (high_cycles == null || high_cycles.Length != 4) { return; } for (int i = 0; i < 4; i++) { dmdConfig.DeHighCycles[i] = high_cycles[i]; } lock (procSyncObject) { PinProc.PRDMDUpdateConfig(ProcHandle, ref dmdConfig); } dmdConfigured = true; }