Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding option of UART at PA9 & PA10? #21

Open
disablewong opened this issue Sep 9, 2020 · 1 comment
Open

Adding option of UART at PA9 & PA10? #21

disablewong opened this issue Sep 9, 2020 · 1 comment
Labels
question Further information is requested

Comments

@disablewong
Copy link

Thanks for your great works Yury!
The simplicity of the configuration and excellence functionality is really impressing!

I want to implement FreeJoy to my telescope for controlling the equatorial mount.
However, the communication with those micro-controllers inside the mount are done by UART.
Is it possible to use some of the ports on the STM32F103 to sent message in UART upon button/axis trigger?
I think it might also be useful for debugging purpose.

@vostrenkov vostrenkov added the question Further information is requested label Sep 9, 2020
@vostrenkov
Copy link
Member

Hi,
FreeJoy is mainly focused in game control devices and implements standard HID protocol.
But if you need to use its functionality for something else you can modificate it as you wish:
axes data stored in two buffers:

analog_data_t raw_axis_data[MAX_AXIS_NUM];
analog_data_t out_axis_data[MAX_AXIS_NUM];

buttons data also stored in two buffers:

physical_buttons_state_t physical_buttons_state[MAX_BUTTONS_NUM];
logical_buttons_state_t logical_buttons_state[MAX_BUTTONS_NUM];

So you can fork this project and add any uart output for this buffer's (and any other) data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants