Code Explanation; Extension Practice - Keyestudio Ks0428 Manual

Table of Contents

Advertisement

www.keyestudio.com

(7) Code Explanation

irrecv.enableIRIn():
after enabling IR decoding, the IR signals will
be received, then function " decode() " will check continuously if
decode successfully.
irrecv.decode(&results):
after decoding successfully, this function
will come back to " true " , and keep result in " results " . After
decoding a IR signals, run the resume()function and receive the
next signal

(8) Extension Practice

We decoded the key value of IR remote control. How about
controlling LED by the measured value? We could operate an
experiment to affirm. Attach an LED to D10, then press the keys of
remote control to make LED light up and off
116

Advertisement

Table of Contents
loading

Table of Contents