mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Run new astyle formatter against all the examples
This commit is contained in:
@ -16,19 +16,19 @@
|
||||
// these are the frequencies for the notes from middle C
|
||||
// to one octave above middle C:
|
||||
const int note[] = {
|
||||
262, // C
|
||||
277, // C#
|
||||
294, // D
|
||||
311, // D#
|
||||
330, // E
|
||||
349, // F
|
||||
370, // F#
|
||||
392, // G
|
||||
415, // G#
|
||||
440, // A
|
||||
466, // A#
|
||||
494, // B
|
||||
523 // C next octave
|
||||
262, // C
|
||||
277, // C#
|
||||
294, // D
|
||||
311, // D#
|
||||
330, // E
|
||||
349, // F
|
||||
370, // F#
|
||||
392, // G
|
||||
415, // G#
|
||||
440, // A
|
||||
466, // A#
|
||||
494, // B
|
||||
523 // C next octave
|
||||
};
|
||||
|
||||
void setup() {
|
||||
@ -39,8 +39,8 @@ void loop() {
|
||||
// then play a note:
|
||||
if (Esplora.readButton(SWITCH_DOWN) == LOW) {
|
||||
int slider = Esplora.readSlider();
|
||||
|
||||
// use map() to map the slider's range to the
|
||||
|
||||
// use map() to map the slider's range to the
|
||||
// range of notes you have:
|
||||
byte thisNote = map(slider, 0, 1023, 0, 13);
|
||||
// play the note corresponding to the slider's position:
|
||||
|
Reference in New Issue
Block a user