Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Tone Generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aa5g21
Tone Generator
Commits
edfca06b
Commit
edfca06b
authored
2 years ago
by
aa5g21
Browse files
Options
Downloads
Patches
Plain Diff
Update solution/main.c
parent
ae2174cd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
solution/main.c
+0
-91
0 additions, 91 deletions
solution/main.c
with
0 additions
and
91 deletions
solution/main.c
+
0
−
91
View file @
edfca06b
...
@@ -4,99 +4,8 @@
...
@@ -4,99 +4,8 @@
#include
"hardware/clocks.h"
#include
"hardware/clocks.h"
#include
"main.h"
#include
"main.h"
// static const uint buzzerPin = 18;
float
*
freq
;
float
*
freq
;
// float freqs[] = {27.5f,
// 29.13524f,
// 30.86771f,
// 32.7032f,
// 34.64783f,
// 36.7081f,
// 38.89087f,
// 41.20344f,
// 43.65353f,
// 46.2493f,
// 48.99943f,
// 51.91309f,
// 55.0f,
// 58.27047f,
// 61.73541f,
// 65.40639f,
// 69.29566f,
// 73.41619f,
// 77.78175f,
// 82.40689f,
// 87.30706f,
// 92.49861f,
// 97.99886f,
// 103.8262f,
// 110.0f,
// 116.5409f,
// 123.4708f,
// 130.8128f,
// 138.5913f,
// 146.8324f,
// 155.5635f,
// 164.8138f,
// 174.6141f,
// 184.9972f,
// 195.9977f,
// 207.6523f,
// 220.0f,
// 233.0819f,
// 246.9417f,
// 261.6256f,
// 277.1826f,
// 293.6648f,
// 311.127f,
// 329.6276f,
// 349.2282f,
// 369.9944f,
// 391.9954f,
// 415.3047f,
// 440.0f,
// 466.1638f,
// 493.8833f,
// 523.2511f,
// 554.3653f,
// 587.3295f,
// 622.254f,
// 659.2551f,
// 698.4565f,
// 739.9888f,
// 783.9909f,
// 830.6094f,
// 880.0f,
// 932.3275f,
// 987.7666f,
// 1046.502f,
// 1108.731f,
// 1174.659f,
// 1244.508f,
// 1318.51f,
// 1396.913f,
// 1479.978f,
// 1567.982f,
// 1661.219f,
// 1760.0f,
// 1864.655f,
// 1975.533f,
// 2093.005f,
// 2217.461f,
// 2349.318f,
// 2489.016f,
// 2637.02f,
// 2793.826f,
// 2959.955f,
// 3135.963f,
// 3322.438f,
// 3520.0f,
// 3729.31f,
// 3951.066f,
// 4186.009f};
void
playNote
(
uint
gpio
,
float
frequency
)
{
void
playNote
(
uint
gpio
,
float
frequency
)
{
gpio_set_function
(
gpio
,
GPIO_FUNC_PWM
);
gpio_set_function
(
gpio
,
GPIO_FUNC_PWM
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment