Skip to content

Commit 37b6901

Browse files
committed
Update input LEDs
1 parent 083424d commit 37b6901

File tree

77 files changed

+2495
-5009
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2495
-5009
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://github.com/tttapa/Control-Surface/workflows/CI%20Tests/badge.svg#)](https://github.com/tttapa/Control-Surface/actions)
1+
[![Build Status](https://github.com/tttapa/Control-Surface/workflows/CI%20Tests/badge.svg)](https://github.com/tttapa/Control-Surface/actions)
22
[![Test Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/tttapa/Control-Surface-doc/master/docs/Coverage/shield.io.coverage.json)](https://tttapa.github.io/Control-Surface-doc/Coverage/index.html)
33
[![Build Status](https://travis-ci.org/tttapa/Control-Surface.svg#?branch=master)](https://travis-ci.org/tttapa/Control-Surface)
44
[![GitHub](https://img.shields.io/github/stars/tttapa/Control-Surface?label=GitHub&logo=github)](https://github.com/tttapa/Control-Surface)
@@ -121,7 +121,7 @@ received:
121121

122122
USBMIDI_Interface midi;
123123
using namespace MIDI_Notes;
124-
NoteValueLED led = { LED_BUILTIN, note(C, 4) };
124+
NoteLED led = { LED_BUILTIN, note(C, 4) };
125125

126126
void setup() { Control_Surface.begin(); }
127127
void loop() { Control_Surface.loop(); }

examples/0. Getting-Started/2.First-Input/2.First-Input.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ using namespace MIDI_Notes;
3131

3232
// Create an array of LEDs that listen to MIDI Note messages, turning on and off
3333
// the LEDs connected to the eight output pins of the shift register
34-
NoteValueLED leds[] = {
34+
NoteLED leds[] = {
3535
{sreg.pin(0), note(C, 4)}, // LED pin, address (note number, channel, cable)
3636
{sreg.pin(1), note(D, 4)}, //
3737
{sreg.pin(2), note(E, 4)}, //

examples/2. MIDI Input/1. LEDs/1.Note-LED/1.Note-LED.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ USBMIDI_Interface midi;
3535
using namespace MIDI_Notes;
3636

3737
// Instantiate the LED that will light up when middle C is playing
38-
NoteValueLED led = {
38+
NoteLED led = {
3939
LED_BUILTIN, // Pin of built-in LED
4040
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
4141
};

examples/2. MIDI Input/1. LEDs/5.Note-LED-PWM/5.Note-LED-PWM.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const pin_t ledPin = LED_BUILTIN; // Change this to your PWM pin <------
3838
using namespace MIDI_Notes;
3939

4040
// Instantiate the LED that will light up when middle C is playing
41-
NoteValueLEDPWM led = {
41+
NoteLEDPWM led = {
4242
ledPin, // Pin of the LED, must be PWM pin
4343
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
4444
};

examples/2. MIDI Input/1. LEDs/6.MAX7219-NoteLED/6.MAX7219-NoteLED.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ using namespace MIDI_Notes;
4242
MAX7219<1> max7219 = SS;
4343

4444
// Instantiate the LED that will light up when middle C is playing
45-
NoteValueLED led = {
45+
NoteLED led = {
4646
max7219.pin(0), // First pin of the MAX7219
4747
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
4848
};

examples/3. MIDI Interfaces/AppleMIDI/AppleMIDI.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ using namespace MIDI_Notes;
137137
NoteButton button = {
138138
0, note(C, 4), // GPIO0 has a push button connected on most boards
139139
};
140-
NoteValueLED led = {
140+
NoteLED led = {
141141
LED_BUILTIN, note(C, 4),
142142
};
143143

examples/3. MIDI Interfaces/Debug-MIDI-Interface/Debug-MIDI-Interface.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ NoteButton button = {
4646
};
4747

4848
// Instantiate the LED that will light up when middle C is playing
49-
NoteValueLED led = {
49+
NoteLED led = {
5050
LED_BUILTIN, // Pin of built-in LED
5151
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
5252
};

examples/3. MIDI Interfaces/Dual-MIDI-Interface/Dual-MIDI-Interface.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ BidirectionalMIDI_PipeFactory<2> pipes;
5252

5353
// Add some MIDI elements to show that the MIDI interfaces actually work
5454
CCPotentiometer pot = {A0, MIDI_CC::General_Purpose_Controller_1};
55-
NoteValueLED led = {LED_BUILTIN, 0x3C};
55+
NoteLED led = {LED_BUILTIN, 0x3C};
5656

5757
void setup() {
5858
// Manually connect the MIDI interfaces to Control Surface

examples/3. MIDI Interfaces/Serial-Interface/Serial-Interface.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ NoteButton button = {
5151
};
5252

5353
// Instantiate the LED that will light up when middle C is playing
54-
NoteValueLED led = {
54+
NoteLED led = {
5555
LED_BUILTIN, // Pin of built-in LED
5656
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
5757
};

examples/7.Displays/MCU-OLED-SSD1306-MEGA/MCU-OLED-SSD1306-MEGA.ino

Lines changed: 0 additions & 247 deletions
This file was deleted.

0 commit comments

Comments
 (0)