Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

UART interface reading stick data as button data and vice versa #7

@Mynotaurus

Description

@Mynotaurus

When running the python example, the sent bytes don't always line up with how the arduino is reading them.
For example, sending a bytearray of [128, 128, 128, 128, 1] should set both sticks to neutral and have no button presses.
[128, 128, 128, 128, 1]
LX LY RX RY C
However, most of the time this ends up out of sync, eg the 1 is read as a joystick input and a 128 as button presses.
[128, 128, 128, 128, 1]
C LX LY RX RY
Is there an easy fix I am missing somewhere?
I am using an Arduino Pro Micro
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions