Skip to content

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

Draft
mitchmindtree wants to merge 1 commit into
nannou-org:bevy-refactorfrom
mitchmindtree:nannou_laser_lasercube
Draft

feat: (WIP) Add support to nannou_laser for lasercube devices#1024
mitchmindtree wants to merge 1 commit into
nannou-org:bevy-refactorfrom
mitchmindtree:nannou_laser_lasercube

Conversation

@mitchmindtree

@mitchmindtree mitchmindtree commented Apr 2, 2025

Copy link
Copy Markdown
Member

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