Skip to content

Commit

Permalink
Update DB2S Not lights up at start, but only with PWM modified tables #…
Browse files Browse the repository at this point in the history
…81

Increase documentation
  • Loading branch information
JockeJarre committed Apr 1, 2024
1 parent 0ff42a7 commit 5cdd511
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions b2sbackglassserver/b2sbackglassserver/Server.vb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cdd511

Please sign in to comment.