EdgeTX / edgetx

EdgeTX is the cutting edge open source firmware for your R/C radio
https://edgetx.org
GNU General Public License v2.0
1.49k stars 314 forks source link

Assign extra PCB inputs available already in X9-Lite to SG and LS and RS. #2901

Open r41065 opened 1 year ago

r41065 commented 1 year ago

Is there an existing issue for this feature request?

Is your feature request related to a problem?

See OpenTx Issue #6555: I have updated all my transmitters to Edgetx to have the same operating system on all of them. Waiting in OpenTx that someone works on the additional switches but stale Robot closed that one. Is there any hope to get this working in EdgeTx ?

Describe the solution you'd like

The X9-Lite has 5 switches and a pot. On, the board, provisions have been made for easy diy extension with 2 pots (or switches) and one switch (to switch a 2 pos or toggle).

I would suggest to include these already in the available hardware options on the X9-Lite.

Describe alternatives you've considered

No response

Additional context

https://github.com/opentx/opentx/issues/6555

pfeerick commented 1 year ago

It should be doable - for the TX12 and TX16 we have support for the extra "unused" ports and it's a matter of configuring what they do. Plus we don't have the storage format issue that existed at the time this issue was mentioned at the time.

Are you in a position where you would be able to test the solution works if someone was to code it without the hardware?

r41065 commented 1 year ago

can take some time because I have a job where I am on the road a lot ( only 1 weekend per month at home... )

raphaelcoeffic commented 1 year ago

@pfeerick I do have a X9-lite, so I should be able to test things as well. @r41065 I'd need a picture of the inputs, and pinout if you have.

r41065 commented 1 year ago

ExtraInputs ExtraGnd

Pictures are from Mike Blandford,

raphaelcoeffic commented 1 year ago

Just looked up the datasheet (see here)

Pin Alternate function RC function
PD14 TIM4_CH3 Switch SG
PC2 ADC123_IN12 Slider LS
PC3 ADC123_IN13 Slider RS
raphaelcoeffic commented 1 year ago

@r41065 as it seems, PC2 & PC3 can be used as analog inputs, while PD14 could be used as an additional 2-pos switch.

alexdibi commented 1 year ago

I'm interested in adding 2 momentary buttons (like X9 lite s).... is there any news?

gagarinlg commented 1 year ago

@3djc maybe this can be done easily, after the switch-refactor merge

r41065 commented 1 month ago

one year after last comment, any news?

raphaelcoeffic commented 1 month ago

@r41065 right, I think we could easily do it now. Anyone who would be able to test?