sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.
1.9k stars 658 forks source link

Add more fan rf protocol support #367

Open patrickdk77 opened 3 years ago

patrickdk77 commented 3 years ago

{ 346, { 35, 1 }, { 1, 2 }, { 2, 1 }, true }, // protocol 13 (M1E-N 182khz, fanimation) { 400, { 34, 1 }, { 1, 2 }, { 2, 1 }, true } // protocol 14 (ax25-tx028, hamptonbay/dawnsun)

This adds the transmit encoding for fanimation and dawnsun (used by hamptonbay)

Either of these are used to receive, cause protocol 11 HT12E matches first in the list, I assume this is just due to not using exact match, but I just modified my code to handle anything from 11 to 14 to match, since if I remove 11, 12 then matches, as it's the almost the same as 13. I preferred to transmit with the exact timings though, even if receive isn't as exact.