KIR RAW Signals.h: Difference between revisions

From AnalysIR WiKi
Jump to navigation Jump to search
(Created page with "'''''> KontroLIR Home > back''''' You can store any number of RAW IR signals you wish to sen...")
 
mNo edit summary
Line 1: Line 1:
'''''> [[KontroLIR - Arduino compatible IR remote control|KontroLIR Home]] > [[Customizing the Firmware|back]]'''''
'''''> [[KontroLIR - Arduino compatible IR remote control|KontroLIR Home]] > [[Customizing the KontroLIR Firmware|back]]'''''


You can store any number of RAW IR signals you wish to send from flash in this file. As most of the flash is unused, you can add a  significant number of additional signals, before running out of storage. In the event, you do not have enough Flash available, then you can move on to using the optional I2C EEPROM for almot limitless signal storage potential.
You can store any number of RAW IR signals you wish to send from flash in this file. As most of the flash is unused, you can add a  significant number of additional signals, before running out of storage. In the event, you do not have enough Flash available, then you can move on to using the optional I2C EEPROM for almot limitless signal storage potential.
Line 17: Line 17:




'''''> [[KontroLIR - Arduino compatible IR remote control|KontroLIR Home]] > [[Customizing the Firmware|back]]'''''
'''''> [[KontroLIR - Arduino compatible IR remote control|KontroLIR Home]] > [[Customizing the KontroLIR Firmware|back]]'''''

Revision as of 08:01, 9 October 2019

> KontroLIR Home > back

You can store any number of RAW IR signals you wish to send from flash in this file. As most of the flash is unused, you can add a significant number of additional signals, before running out of storage. In the event, you do not have enough Flash available, then you can move on to using the optional I2C EEPROM for almot limitless signal storage potential.

Using a tool like AnalysIR to clean signals beforehand will greatly improve the performance and range.

You are free to use any naming convention here but it is mostly a good idea to stick to a similar naming convention as in the examples provided.

To send an IR signal from flash use the following:

  KIR_sendRAW_Flash(AC_irSignal1, sizeof(AC_irSignal1) / sizeof(int), 38);  
  // send AC signal #1 @ 38kHz

where AC_irSignal1 is the Raw IR signal and 38 is the carrier frequency of 38kHz.

Tip: Sending from flash is more efficient because it uses up much less scarce SRAM, without incurring a penalty


> KontroLIR Home > back