Skip to content

Intelligent-Embedded-Control-Laboratory/RC_CRSF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RC_CRSF

除夕夜還在工作,這麼認真的員工是不是該加薪了

How to use

// 2023-01-21
#include <Arduino.h>
#include <RC_CRSF.h>

#define HW_SERIAL_INTERFACE_RC_CRSF Serial1
#define HW_SERIAL_BAUD_RATE_RC_CRSF 400000

RC_CRSF CRSF;
uint16_t RC[16];

void setup()
{
    Serial.begin(115200);
    CRSF.begin(HW_SERIAL_INTERFACE_RC_CRSF, HW_SERIAL_BAUD_RATE_RC_CRSF);
}

void loop()
{
    if (CRSF.read(RC) == RC_CRSF::CRSF_OK)
    {
        for (auto &s : RC)
        {
            Serial.print(s);
            Serial.print(" ");
        }
        Serial.println();
        Serial.flush();
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages