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

Feature Request: Bidirectional Joystick Card for ESP Dash Pro #252

Open
inF1704 opened this issue Feb 21, 2025 · 0 comments
Open

Feature Request: Bidirectional Joystick Card for ESP Dash Pro #252

inF1704 opened this issue Feb 21, 2025 · 0 comments

Comments

@inF1704
Copy link

inF1704 commented Feb 21, 2025

Add setValue() Method to Joystick Card for Bidirectional Control

### Description
Currently, the Joystick Card only supports user input from dashboard to controller. This feature request proposes adding bidirectional functionality to enable setting joystick position programmatically, which would be particularly useful for applications like level/tilt displays.

### Proposed Functionality

// New method for Joystick class
void setValue(int x, int y);  // Set joystick position (-60 to +60 range)

Use Cases

  • Digital spirit level/bubble level display
  • Equipment tilt angle visualization
  • Machine orientation feedback
  • Remote system position monitoring

Technical Implementation

  1. Add setValue() method to Joystick class
  2. Implement WebSocket message handling for position updates
  3. Update joystick position in UI when receiving new coordinates
  4. Maintain existing input functionality while adding output capability

Benefits

  • Enables new visualization use cases
  • Maintains backward compatibility
  • Provides intuitive visual feedback for sensor data
  • Reduces need for custom implementations

Impact

This enhancement would expand the Joystick Card's utility while maintaining its current functionality, making it a true bidirectional control element.

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

No branches or pull requests

1 participant