From f48ff101d5108371e6d9058441b270d0c4a9d336 Mon Sep 17 00:00:00 2001 From: Jan Kantert Date: Thu, 20 Dec 2018 17:32:32 +0100 Subject: [PATCH] workaround for P-Roc DMD problem --- mpf/platforms/p_roc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mpf/platforms/p_roc.py b/mpf/platforms/p_roc.py index eae5bae5d..35cc93db1 100644 --- a/mpf/platforms/p_roc.py +++ b/mpf/platforms/p_roc.py @@ -241,6 +241,9 @@ def __init__(self, pinproc, proc, machine): # size is hardcoded here since 128x32 is all the P-ROC hw supports self.dmd = pinproc.DMDBuffer(128, 32) + # work around pypinproc bug (fixed upstream) + self.proc.set_dmd_color_mapping(list(range(0, 16))) + # dmd_timing defaults should be 250, 400, 180, 800 if self.machine.config['p_roc']['dmd_timing_cycles']: dmd_timing = Util.string_to_list(