forked from sweepai/sweep
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sweep: Write me a python program that plays the output of a .wav file on a Raspberry Pi Pico and add it to the /sweepai directory #51
Open
sweep-ai
wants to merge
52
commits into
main
Choose a base branch
from
sweep/write_me_a_python_program_that_plays_the
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…_is_being_us Sweep: Please identify where GitHub is being used as an Oauth 2.0 Application, and replace it with GitLab as the target. (✓ Sandbox Passed)
…_request_api Sweep: identify where pyGitHub Pull Request API calls are being made, and replace them with the API spec from Python-GitLab for Merge Requests
…webhookevent Sweep: Identify where GitHub issue webhook/event-listener is and replace it with a corresponding GitLab issue webhook/event-listener. (✓ Sandbox Passed)
…d_pr_endpoint Sweep: update all issue related and PR endpoints from GitHub to GitLab (✓ Sandbox Passed)
…d_pull_reques Sweep: help me update all issue and pull request endpoints as well as any endpoints used to scrape Repository code from GitHub to GitLab's API endpoint
[Sweep Rules] Fix type hinting in sweepai/pre_indexed_docs.py
Remove duplicate entries in DOCS_ENDPOINTS dictionary
…add_gitlab_ap Sweep: update pre indexed docs to add GitLab API reference documentation for issues, webhooks, MRs, and pipelines
…20_library_to Sweep: Add docs for python-gitlab 4.2.0 library to pre-indexed docs
Add Type Hints to sweepai/pre_indexed_docs.py
…y_to_point_to Sweep: update SweepAI github-utils.py to point to their GitLab equivalents
Refactor repeated code in github_utils.py
Rollback Files For Sweep
|
Apply Sweep Rules to your PR?
|
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Feedback (click)
Description
This pull request adds a new Python script,
play_wav_pico.py
, to the/sweepai
directory. The script allows for playing the output of a .wav file on a Raspberry Pi Pico.Summary
play_wav_pico.py
to the/sweepai
directorywave
andmachine
modulesplay_wav(filename)
that plays the .wav file specified byfilename
play_wav
function reads the frames of the .wav file and sets the duty cycle of the PWM pin on the Raspberry Pi Pico accordinglymain
function that callsplay_wav
with a sample .wav file,audio.wav
Fixes #50.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: