#include "structsAndDefines.h" #define myId 0x01 #define myChannel 1 #define jNAME "DefaultReceiver" #define jMPU #define jCOMP #define jGNSS #define jOUT const byte jOutPins[] = {13, 12, 14, 27, 26, 25, 33, 32, 15 /*,2*/}; //#define debug ChannelDesc buttonDesc[32] = { {BUTTONswitch,"arm"} }; ChannelDesc analogDesc[12] = { {ANALOGused, "throttle"}, {ANALOGused, "yaw"}, {ANALOGused, "pitch"}, {ANALOGused, "roll"}, }; void onConnect(){ } void onDisconnect(bool expected){ } #include "juPadReceiver.h" void onData(){ //RCdata //RCgetBTN(0-31) //RCgetAnalog(0-11) } void setup(){ jSetup(); } void loop(){ jLoop(); }