Skip to content

the examples use pin 5 but each code says pin 8 (Circuit) #4

Description

@pakair
/*  Simple Tone player
     Generates a series of tones from MIDI note values.
   The melody is Steve Reich's "Piano phase"

  Circuit:
  - 8 ohm speaker on digital pin 8                                 <----------------------------- pin 8

  created 13 Feb 2017
  modified 22 Dec 2018
  by Tom Igoe
*/
#define NOTE_A4 69         // MIDI note value for middle A
#define FREQ_A4 440        // frequency for middle A

const int speakerPin = 5;  // the pin number for the speaker <--------------------------- pin 5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions