Skip to content

Commit

Permalink
Improve decoder conf qx-30x to support multiple switches and multi-ga…
Browse files Browse the repository at this point in the history
…ng versions (#3008)
  • Loading branch information
edco authored Nov 5, 2024
1 parent f7c24ae commit 2727972
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions conf/qx-30x.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# QX-30X
#
# This decoder reads button presses from QX-302, QX-305 self powered switches.
# This decoder reads button presses from QX-302, QX-304 and QX-305 self powered
# switches. These switches appear to use an EV1527 based encoding, where the
# first 20 bits contain the device ID, the next 4 bits identify which button on
# the device was pushed, and there may be a trailing sync bit. A sample rate of
# around 1MHz is recommended to reliably detect these devices.
#

decoder {
Expand All @@ -10,6 +14,9 @@ decoder {
long = 100,
gap = 150,
reset = 1500,
bits >= 25,
unique
bits >= 24,
bits <= 25,
unique,
get = get=@0:{20}:id,
get = get=@20:{4}:button
}

0 comments on commit 2727972

Please sign in to comment.