Добавлена библиотека IRremote
1. Инициализация hal библиотек, включение тактирования портов, установка вектора прерываний теперь производится в crt0.S 2. Добавлена библиотека IRremote. Для работы использует прерывание таймера timer16_0 Co-authored-by: KLASSENTS <klassen@elron.tech> Co-committed-by: KLASSENTS <klassen@elron.tech>
This commit was merged in pull request #10.
This commit is contained in:
1 parent
2945cf9c8c
commit
e53bac6ba8
122 files changed
+34285
-29
No files matched your search
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* @file IRremote.h
|
||||
*
|
||||
* @brief Stub for backward compatibility
|
||||
*/
|
||||
|
||||
#ifndef IRremote_h
|
||||
#define IRremote_h
|
||||
|
||||
#include "IRremote.hpp"
|
||||
|
||||
#warning Thank you for using the IRremote library!
|
||||
#warning It seems, that you are using a old version 2.0 code / example.
|
||||
#warning This version is no longer supported!
|
||||
#warning Please use one of the new code examples from the library available at "File > Examples > Examples from Custom Libraries / IRremote".
|
||||
#warning Or downgrade your library to version 2.6.0.
|
||||
#warning Start with the SimpleReceiver or SimpleSender example.
|
||||
#warning The examples are documented here: https://github.com/Arduino-IRremote/Arduino-IRremote#examples-for-this-library
|
||||
#warning A guide how to convert your 2.0 program is here: https://github.com/Arduino-IRremote/Arduino-IRremote#converting-your-2x-program-to-the-4x-version
|
||||
|
||||
/**********************************************************************************************************************
|
||||
* The OLD and DEPRECATED decode function with parameter aResults, kept for backward compatibility to old 2.0 tutorials
|
||||
* This function calls the old MSB first decoders and fills only the 3 variables:
|
||||
* aResults->value
|
||||
* aResults->bits
|
||||
* aResults->decode_type
|
||||
* It prints a message on the first call.
|
||||
**********************************************************************************************************************/
|
||||
bool IRrecv::decode(decode_results *aResults) {
|
||||
static bool sMessageWasSent = false;
|
||||
if (!sMessageWasSent) {
|
||||
Serial.println(F("**************************************************************************************************"));
|
||||
Serial.println(F("Thank you for using the IRremote library!"));
|
||||
Serial.println(F("It seems, that you are using a old version 2.0 code / example."));
|
||||
Serial.println(F("This version is no longer supported!"));
|
||||
Serial.println(F("Please use one of the new code examples from the library,"));
|
||||
Serial.println(F(" available at \"File > Examples > Examples from Custom Libraries / IRremote\"."));
|
||||
Serial.println(F("Or downgrade your library to version 2.6.0."));
|
||||
Serial.println();
|
||||
Serial.println(F("Start with the SimpleReceiver or SimpleSender example."));
|
||||
Serial.println();
|
||||
Serial.println(F("The examples are documented here:"));
|
||||
Serial.println(F(" https://github.com/Arduino-IRremote/Arduino-IRremote#examples-for-this-library"));
|
||||
Serial.println(F("A guide how to convert your 2.0 program is here:"));
|
||||
Serial.println(F(" https://github.com/Arduino-IRremote/Arduino-IRremote#converting-your-2x-program-to-the-4x-version"));
|
||||
Serial.println();
|
||||
Serial.println(F("Thanks"));
|
||||
Serial.println(F("**************************************************************************************************"));
|
||||
Serial.println();
|
||||
Serial.println();
|
||||
sMessageWasSent = true;
|
||||
}
|
||||
return decode_old(aResults);
|
||||
}
|
||||
|
||||
#endif // IRremote_h
|
||||
#pragma once
|
||||
|
||||
Reference in new issue
Block a user