Skip to content

Commit

Permalink
Update input LEDs
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Sep 5, 2020
1 parent 083424d commit 37b6901
Show file tree
Hide file tree
Showing 78 changed files with 2,497 additions and 5,011 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://github.com/tttapa/Control-Surface/workflows/CI%20Tests/badge.svg#)](https://github.com/tttapa/Control-Surface/actions)
[![Build Status](https://github.com/tttapa/Control-Surface/workflows/CI%20Tests/badge.svg)](https://github.com/tttapa/Control-Surface/actions)
[![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)
[![Build Status](https://travis-ci.org/tttapa/Control-Surface.svg#?branch=master)](https://travis-ci.org/tttapa/Control-Surface)
[![GitHub](https://img.shields.io/github/stars/tttapa/Control-Surface?label=GitHub&logo=github)](https://github.com/tttapa/Control-Surface)
Expand Down Expand Up @@ -121,7 +121,7 @@ received:

USBMIDI_Interface midi;
using namespace MIDI_Notes;
NoteValueLED led = { LED_BUILTIN, note(C, 4) };
NoteLED led = { LED_BUILTIN, note(C, 4) };

void setup() { Control_Surface.begin(); }
void loop() { Control_Surface.loop(); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ using namespace MIDI_Notes;

// Create an array of LEDs that listen to MIDI Note messages, turning on and off
// the LEDs connected to the eight output pins of the shift register
NoteValueLED leds[] = {
NoteLED leds[] = {
{sreg.pin(0), note(C, 4)}, // LED pin, address (note number, channel, cable)
{sreg.pin(1), note(D, 4)}, //
{sreg.pin(2), note(E, 4)}, //
Expand Down
2 changes: 1 addition & 1 deletion examples/2. MIDI Input/1. LEDs/1.Note-LED/1.Note-LED.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ USBMIDI_Interface midi;
using namespace MIDI_Notes;

// Instantiate the LED that will light up when middle C is playing
NoteValueLED led = {
NoteLED led = {
LED_BUILTIN, // Pin of built-in LED
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const pin_t ledPin = LED_BUILTIN; // Change this to your PWM pin <------
using namespace MIDI_Notes;

// Instantiate the LED that will light up when middle C is playing
NoteValueLEDPWM led = {
NoteLEDPWM led = {
ledPin, // Pin of the LED, must be PWM pin
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ using namespace MIDI_Notes;
MAX7219<1> max7219 = SS;

// Instantiate the LED that will light up when middle C is playing
NoteValueLED led = {
NoteLED led = {
max7219.pin(0), // First pin of the MAX7219
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
};
Expand Down
2 changes: 1 addition & 1 deletion examples/3. MIDI Interfaces/AppleMIDI/AppleMIDI.ino
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ using namespace MIDI_Notes;
NoteButton button = {
0, note(C, 4), // GPIO0 has a push button connected on most boards
};
NoteValueLED led = {
NoteLED led = {
LED_BUILTIN, note(C, 4),
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ NoteButton button = {
};

// Instantiate the LED that will light up when middle C is playing
NoteValueLED led = {
NoteLED led = {
LED_BUILTIN, // Pin of built-in LED
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ BidirectionalMIDI_PipeFactory<2> pipes;

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

void setup() {
// Manually connect the MIDI interfaces to Control Surface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ NoteButton button = {
};

// Instantiate the LED that will light up when middle C is playing
NoteValueLED led = {
NoteLED led = {
LED_BUILTIN, // Pin of built-in LED
{note(C, 4), CHANNEL_1}, // Note C4 on MIDI channel 1
};
Expand Down
247 changes: 0 additions & 247 deletions examples/7.Displays/MCU-OLED-SSD1306-MEGA/MCU-OLED-SSD1306-MEGA.ino

This file was deleted.

Loading

0 comments on commit 37b6901

Please sign in to comment.