-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ZZ-Cat:Arduino-IDE-Compatibility
Reinstate compatibility with the Arduino IDE.
- Loading branch information
Showing
15 changed files
with
210 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
/** | ||
* @file channels.cpp | ||
* @file channels.ino | ||
* @author Cassandra "ZZ Cat" Robinson ([email protected]) | ||
* @brief This example sketch shows how to receive RC channels from a CRSF receiver using the CRSF for Arduino library. | ||
* @version 0.2.0 | ||
* @date 2023-02-23 | ||
* @version 0.3.0 | ||
* @date 2023-02-25 | ||
* | ||
* @copyright Copyright (c) 2023, Cassandra "ZZ Cat" Robinson. All rights reserved. | ||
* | ||
* @section License GNU General Public License v3.0 | ||
* This program is free software: you can redistribute it and/or modify | ||
* This example sketch is a part of the CRSF for Arduino library. | ||
* CRSF for Arduino is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* CRSF for Arduino is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* along with CRSF for Arduino. If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
* @section Introduction | ||
* | ||
|
@@ -99,7 +100,10 @@ | |
* | ||
*/ | ||
|
||
#include "Arduino.h" | ||
#if defined(PLATFORMIO) | ||
#error "This example is for the Arduino IDE only." | ||
#endif | ||
|
||
#include "CRSFforArduino.h" | ||
|
||
CRSFforArduino crsf = CRSFforArduino(&Serial1); | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name=CRSFforArduino | ||
version=0.3.0 | ||
author=Cassandra Robinson <[email protected]> | ||
maintainer=Cassandra Robinson <[email protected]> | ||
sentence=An Arduino Library for communicating with ExpressLRS receivers. | ||
paragraph=This library brings the CRSF protocol to the Arduino platform. It is compatible with ExpressLRS & Crossfire receivers. | ||
category=Communication | ||
url=https://github.com/ZZ-Cat/CRSFforArduino | ||
depends=Adafruit_ZeroDMA | ||
dot_a_linkage=false | ||
includes=CRSFforArduino.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* @file CRSFforArduino.h | ||
* @author Cassandra "ZZ Cat" Robinson ([email protected]) | ||
* @brief Top level header for CRSF for Arduino, to help with Arduino IDE compatibility. | ||
* @version 0.3.0 | ||
* @date 2023-02-25 | ||
* | ||
* @copyright Copyright (c) 2023, Cassandra "ZZ Cat" Robinson. All rights reserved. | ||
* | ||
* @section License GNU General Public License v3.0 | ||
* This header file is a part of the CRSF for Arduino library. | ||
* CRSF for Arduino is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* CRSF for Arduino is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with CRSF for Arduino. If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "lib/CRSFforArduino/CRSFforArduino.h" |
Oops, something went wrong.