KIR header.h: Difference between revisions

From AnalysIR WiKi
Jump to navigation Jump to search
(Created page with "'''''> KontroLIR Home > back''''' The file is the main header file for KontroLIR....")
 
No edit summary
Line 5: Line 5:


* We include any library used at the top of this file along with other KontroLIr header files. If you plan on using I2C EEPROM, then you should include it here.
* We include any library used at the top of this file along with other KontroLIr header files. If you plan on using I2C EEPROM, then you should include it here.
* The rest of the file is a collection of definitions for Rows, Cols, Pins, Buttons, macros and constant values.
* The rest of the file is a collection of definitions for Rows, Cols, Pins, Buttons, macros and constant values, which are commented inline.
* There is also a collection of macro for control of the LED indicator. If you prefer to disable the indicator LED then simply set LEDINDICATOR to false.
* There is also a collection of macros for control of the LED indicator. If you prefer to disable the indicator LED then simply set LEDINDICATOR to false. Default is enabled.
* ''DEBUGPRINTFLAG'' - by default this is commented out, which means that debug output is off. If you wish to see the debug info printed via serial, then uncomment this line/definition. It makes no sense to enable debug info when KontroLIR is running on batties, as it only serves to reduce batteyr life for no reason. If you are having issues than you can make use of the debug mactos in your own code.
* ''DEBUGPRINTFLAG'' - by default this is commented out, which means that debug output is off. If you wish to see the debug info printed via serial, then uncomment this line/definition. It makes no sense to enable debug info when KontroLIR is running on batteries, as it only serves to reduce battery life for no reason. If you are having issues then you can make use of the debug mactos in your own code.
* ''lbCheck'' - define the frequency of button presses after which we check fro low battery levels. It doesnt make sens doing this check every time, but if you prefer to do this set it to 1. The default is 2.
* ''lbCheck'' - define the frequency of button presses after which we check fro low battery levels. It doesnt make sens doing this check every time, but if you prefer to do this set it to 1. The default is 2.
* batteyLowThreshold - we set this value to 2 volts or 2.4 volts depending on the clock speed. The recommended default is 2.4volts for 8Mhz. Once this threshold is met KontroLIR will go to sleep permanently to avoid potential for FLASH or EEPROM corruption. Operation will continue once new batteries are inserted.
* batteyLowThreshold - we set this value to 2 volts or 2.4 volts depending on the clock speed. The recommended default is 2.4volts for 8Mhz. Once this threshold is met KontroLIR will go to sleep permanently to avoid potential for FLASH or EEPROM corruption. Operation will continue once new batteries are inserted.

Revision as of 08:36, 9 October 2019

> KontroLIR Home > back


The file is the main header file for KontroLIR.

  • We include any library used at the top of this file along with other KontroLIr header files. If you plan on using I2C EEPROM, then you should include it here.
  • The rest of the file is a collection of definitions for Rows, Cols, Pins, Buttons, macros and constant values, which are commented inline.
  • There is also a collection of macros for control of the LED indicator. If you prefer to disable the indicator LED then simply set LEDINDICATOR to false. Default is enabled.
  • DEBUGPRINTFLAG - by default this is commented out, which means that debug output is off. If you wish to see the debug info printed via serial, then uncomment this line/definition. It makes no sense to enable debug info when KontroLIR is running on batteries, as it only serves to reduce battery life for no reason. If you are having issues then you can make use of the debug mactos in your own code.
  • lbCheck - define the frequency of button presses after which we check fro low battery levels. It doesnt make sens doing this check every time, but if you prefer to do this set it to 1. The default is 2.
  • batteyLowThreshold - we set this value to 2 volts or 2.4 volts depending on the clock speed. The recommended default is 2.4volts for 8Mhz. Once this threshold is met KontroLIR will go to sleep permanently to avoid potential for FLASH or EEPROM corruption. Operation will continue once new batteries are inserted.



> KontroLIR Home > back