![]() It calls two functions from the sirc library: sirc_setTimeout (int ms) and sirc_button(int pin). This is why you must use a remote that is set up to control SONY devices. The name “sirc” stands for SONY Infrared Remote Code, since it decodes signals that use the SONY remote protocol. The sirc library does the work of decoding the on-off pattern detected by the I/O pin. While the IR receiver detects these bursts it sends a 0 the Propeller I/O pin, and a 1 when it does not. The IR remote sends short bursts of 38 kHz infrared light, in a different on-off pattern for each button on the remote. The IR receiver is looking for infrared light (in the 980 nanometer range) that is pulsing at around 38 kHz. Note that the Channel up/down, Volume up/down, and Mute buttons also return numbers. You should see the remote button number displayed in the SimpleIDE terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |