Skip to content

feat: (WIP) Add support to nannou_laser for lasercube devices #1024

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

Draft
wants to merge 1 commit into
base: bevy-refactor
Choose a base branch
from

Conversation

mitchmindtree
Copy link
Member

@mitchmindtree mitchmindtree commented Apr 2, 2025

Adds lasercube support via the new crate: https://github.com/nannou-org/lasercube.

WIP: Currently compiles, CI failing due to warnings.

To-Do

  • Add LaserCube dependencies to nannou_laser/Cargo.toml
  • Update DetectedDac enum to add a LaserCube variant
  • Update Id enum to add a LaserCube variant
  • Create src/protocol/lasercube.rs module
  • Update max_point_hz(), buffer_capacity(), and id() methods on DetectedDac
  • Update StreamError enum to handle LaserCube errors
  • Create point conversion functions (LaserCube ↔ nannou_laser)
  • Implement device detection for LaserCube DACs (using lasercube::discover).
  • Move ether-dream specific stream logic (e.g. run_laser_stream_tcp_loop) into protocol/etherdream.rs.
  • Add raw stream implementation for lasercube (inspired by circle.rs example).
  • Update stream building logic to handle LaserCube DACs
  • Update ffi module.
  • Test both etherdream and lasercube implementations.

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

Successfully merging this pull request may close these issues.

1 participant