From 5cdd5114ea5a10b0e209c900a08096b14154a2b1 Mon Sep 17 00:00:00 2001 From: Jarr3 Date: Thu, 29 Feb 2024 18:56:06 +0100 Subject: [PATCH] Update DB2S Not lights up at start, but only with PWM modified tables #81 Increase documentation --- b2sbackglassserver/b2sbackglassserver/Server.vb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/b2sbackglassserver/b2sbackglassserver/Server.vb b/b2sbackglassserver/b2sbackglassserver/Server.vb index 487e1b4..f0823a4 100644 --- a/b2sbackglassserver/b2sbackglassserver/Server.vb +++ b/b2sbackglassserver/b2sbackglassserver/Server.vb @@ -1566,6 +1566,12 @@ Public Class Server End Get Set(ByVal value As Integer) VPinMAME.SolMask(number) = value + + 'There is a new setting for VPinMame.SolMask(2) to set the output mode: + ' 0 = default + ' 1 = modulated (PWM) solenoid (exist for some years already) + ' 2 = new PWM mode (all solenoids but also lamps, and value if physic meaning, not smoothed out binary state) + ' For this new mode, we now hardcode a value 64, if the lamp intensity exceed this value, it is binary 1 If number = 2 Then lamplighted = If(value = 2, 64, 0) End Set End Property