First, I am quite new to this forum...but I have managed to get my blue pill board programmed over ST Link from Ardunio IDE 1.8.8. First I tried the blink example...and it working great on the Blue Pill.
But what I want to try is to see if the I can get the internal micro USB connector to run a small application that sends core midi information over the USB port. What I wanted to see if I can plug in the Blue Pill board to ipads, PC and see if the sequencer programs is able to handle Core Midi and get the info. I have tried this on a Ardunio Pro Micro...and it works great. Just plug in the Ipad or PC and it will receive the midi information sent by the Ardunio boards...
The code I have been trying is the following:
Code: Select all
#include
#include
MIDI_CREATE_DEFAULT_INSTANCE();
void setup() {
MIDIUSB.begin(10);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
// play notes from F#-0 (0x1E) to F#-5 (0x5A):
MIDIUSB.sendNoteOn(0x5A, 0x45, 0x90); //(note, velocity, channel)
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(2000);
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(2000);
}
Exit status 1
Error compiling for board Generic STM32F103C series.
Looking on the deatils in the logs...
Code: Select all
#error MIDIUSB can only be used with an USB MCU.
#error "Unsupported architecture"
Best Regards
Anders