It converts that value into a stream of marks and spaces with the proper headers, bit encodings and timings. Similarly if you want to transmit IR signals, all you need to do is pass 32 bit value to the library and tell it what protocol you want to use. You can then easily compare that value to the one you want. The IR library collects the timing information in a buffer and then turns it into a single 32 bit value. In order to compare the data received to see if it was what you wanted, you would similarly need to store large arrays of data.įortunately the signals are sent according to very specific protocols that allow you to take this received timing data and turn it into a single binary number of up to 32 bits. If you had to store the precise timing of the entire signal it would take an array of up to 100 16 bit integers. Then by varying the timing of marks and spaces, a sequence of bits is transmitted. Typically there is a long mark and space at the beginning of each signal that serves as a header. IR signals consists of a series of modulated pulses called "marks" separated by intervals called "spaces".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |