edgetx icon indicating copy to clipboard operation
edgetx copied to clipboard

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

Open r41065 opened this issue 3 years ago • 10 comments

Is there an existing issue for this feature request?

  • [X] I have searched the existing issues

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

r41065 avatar Dec 19 '22 09:12 r41065

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?

pfeerick avatar Dec 19 '22 11:12 pfeerick

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

r41065 avatar Dec 19 '22 11:12 r41065

@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.

raphaelcoeffic avatar Dec 19 '22 12:12 raphaelcoeffic

ExtraInputs ExtraGnd

Pictures are from Mike Blandford,

r41065 avatar Dec 19 '22 12:12 r41065

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 avatar Dec 19 '22 12:12 raphaelcoeffic

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

raphaelcoeffic avatar Dec 19 '22 12:12 raphaelcoeffic

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

alexdibi avatar Jan 04 '23 13:01 alexdibi

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

gagarinlg avatar May 05 '23 12:05 gagarinlg

one year after last comment, any news?

r41065 avatar May 16 '24 08:05 r41065

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

raphaelcoeffic avatar May 19 '24 19:05 raphaelcoeffic