hi everyone, i nned a little help with a pinmapping with openlrsng.
i would like to use M3 flytron 1W TX as RX and woud like to map the same pin as TX ,
i made a modification on code but don't know if i'm right:
here is the original code for RX operation for Flytron M3 1W TX:
#else // RX operation
#define USE_OCR1B // OC1A is used for RFM22, so we use OC1B instead which is buzzer
#define PPM_OUT 10 // OC1B this is the buzzer input
#define RSSI_OUT 3 // PD3 OC2B -this is the PPM pin on the radio connection
#define OUTPUTS 7 // outputs available
const pinMask_t OUTPUT_MASKS[OUTPUTS] = {
{0x04,0x00,0x00},{0x00,0x00,0x08},{0x00,0x01,0x00}, // PPM, RSSI, CH1
{0x00,0x10,0x00},{0x00,0x20,0x00},{0x00,0x00,0x01}, // SDA, SCL, RXD
{0x00,0x00,0x02}, // TXD
};
const uint8_t OUTPUT_PIN[OUTPUTS] = { 10, 3, A0, A4, A5, 0, 1};
#define PPM_OUTPUT 0
#define RSSI_OUTPUT 1
#define LLIND_OUTPUT 2
#define ANALOG0_OUTPUT 3
#define ANALOG1_OUTPUT 4
#define SDA_OUTPUT 3
#define SCL_OUTPUT 4
#define RXD_OUTPUT 5
#define TXD_OUTPUT 6
struct rxSpecialPinMap rxSpecialPins[] = {
{ 0, PINMAP_PPM},
{ 1, PINMAP_LBEEP},
{ 1, PINMAP_RSSI},
{ 2, PINMAP_LLIND},
{ 3, PINMAP_SDA},
{ 3, PINMAP_ANALOG}, // AIN0
{ 4, PINMAP_SCL},
{ 4, PINMAP_ANALOG}, // AIN1
{ 5, PINMAP_RXD},
{ 6, PINMAP_TXD},
{ 6, PINMAP_SPKTRM},
{ 6, PINMAP_SBUS},
{ 6, PINMAP_SUMD},
};
and i change this part: const uint8_t OUTPUT_PIN[OUTPUTS] = { 3, 5, A0, A4, A5, 0, 1};
can someone help me plaese?
Pinmapping
Jump to
- OPENRC News & Information
- ↳ General Information & Rules
- ↳ Feedback
- General help and information
- ↳ Software
- ↳ Hardware
- ↳ General help (FrSky Taranis radio)
- Radio Control Transmitter Firmwares
- ↳ General model setup questions
- ↳ er9x / gruvin9x / th9 based firmwares
- ↳ Template Library
- ↳ Splash Screen Library
- ↳ Helicoptor Programming
- ↳ radioclone
- ↳ stock firmware (fly sky th9x)
- ↳ Template Library
- ↳ Sound Pack Library
- ↳ Edge TX
- ↳ Ethos
- ↳ openTx
- ↳ openTx for FrSky radios
- ↳ openTx model setup
- ↳ er9x
- ↳ er9x model setup
- ↳ ersky9xr
- ↳ erskyTx (was ersky9x)
- ↳ ersky9x model setup
- ↳ gruvin9x
- ↳ gruvin9x model setup
- ↳ th9x
- ↳ th9x model setup
- ↳ gv9x
- ↳ radioclone
- ↳ radioclone model setup
- ↳ tgy9xr
- ↳ tgy9xr model setup
- ↳ AR-T6
- ↳ other
- Desktop Software to Program Your Transmitter
- ↳ eePe
- ↳ companion9x
- ↳ eepSKYe
- Open Radio Control RF Systems & Hardware
- ↳ OpenLRS
- ↳ OpenLRSng
- ↳ OpenLRSng hardware
- Closed Source Radio Control RF Systems & Hardware
- ↳ Royal Way - Rlink UHF Long Range System
- Transmitter Hardware
- ↳ FlySky TH9X / Turnigy 9X / Eurgle 9X radio
- ↳ SMARTIEPARTS PROGRAMMER
- ↳ HARDWARE MODS & HACKS
- ↳ FRSky Telemetry Mods
- ↳ ArduPilot Mods
- ↳ Electronic Mods
- ↳ Hardware Mods
- ↳ Soldering, Hardware, Skills
- ↳ DSM2/DSMX Mods
- ↳ UPGRADE BOARDS
- ↳ sky9x upgrade board
- ↳ gruvin9x upgrade board
- ↳ 9Xtreme upgrade board
- ↳ RF MODULES
- ↳ The FRSKY Forum
- ↳ PROGRAMMERS
- ↳ FrSky Taranis radio
- ↳ FRSky Horus radio
- ↳ Turnigy 9XR PRO radio
- ↳ Orange DSM Telemetry module
- ↳ Turnigy 9XR radio
- ↳ PROGRAMMERS
- ↳ Other Radios
- ↳ Retro Radios
- Other OPEN Projects
- ↳ General RC Electronic Projects and Discussion
- ↳ OpenXVario - an open source vario supported by the open source firmwares!!
- ↳ Other Electronic Projects
- ↳ OpenFlightStab
- ↳ OpenLRSng
- ↳ 3D Printing
- Other Forums
- ↳ The Pickled Gnu (The Pub)
- ↳ FPV Projects
- ↳ Reviews
- ↳ Where to buy / Spares / Modules? Selling up?
- Links
- ↳ er9x on Google Code
- ↳ ersky9x on Github
- ↳ Gruvin9x on Google Code
- ↳ th9x on Google Code
- ↳ openTx on Google Code
- ↳ gv9x on Google Code
- ↳ radioclone on Sourceforge
- ↳ eePe on Google Code
- ↳ companion9x on Google Code
- ↳ 9X Guides
- ↳ openxvario