45 lines
491 B
Arduino
45 lines
491 B
Arduino
|
#include "descriptionStruct.h"
|
||
|
|
||
|
#define myId 0x01
|
||
|
#define myChannel 1
|
||
|
|
||
|
#define jMPU
|
||
|
#define jCOMP
|
||
|
#define jGNSS
|
||
|
|
||
|
#define debug
|
||
|
|
||
|
//https://dl.espressif.com/dl/package_esp32_index.json
|
||
|
//1.0.6
|
||
|
|
||
|
ChannelDesc buttonDesc[32] = {
|
||
|
{3,"Armed"}
|
||
|
};
|
||
|
ChannelDesc analogDesc[12] = {
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
void onConnect(){
|
||
|
|
||
|
}
|
||
|
void onDisconnect(bool expected){
|
||
|
|
||
|
}
|
||
|
|
||
|
#include "juPadReceiver.h"
|
||
|
|
||
|
void onData(){
|
||
|
//RCdata
|
||
|
//RCgetBTN(0-31)
|
||
|
//RCgetAnalog(0-11)
|
||
|
}
|
||
|
|
||
|
void setup(){
|
||
|
jSetup();
|
||
|
}
|
||
|
|
||
|
void loop(){
|
||
|
jLoop();
|
||
|
}
|