gmanni66 / ESP32-BLE-MIDI-Footswitch

A simple ESP32 BLE MIDI Footswitch to send control changes using Bluetooth
2 stars 0 forks source link

coding for SH1106 display #1

Open Celticpure opened 2 years ago

Celticpure commented 2 years ago

Hi there I am trying to adapt your coding for a SH1106 display, but I am not having much luck. Do you plan on issuing a code for such display? Thankyou for you great project.

gmanni66 commented 2 years ago

Hi there I'm not sure I can pull the state as haven't found yet a simple way to do it I can probably write something to display when a button is pushed but not sure it make much use or sense to have it there What are your needs for a display on a usb midi that only sends control changes? Let me know what you need on the display and I'll have a think I have both screen so I can test it Thanx

Celticpure commented 2 years ago

Ok that makes sense. When I seen the SSD1306 included in the code I assumed it was showing the amp/effects status. From what I think your saying this is not the case? Am I right?

The thing is with this code, I have tried to change it to suit a SH1106 and display whatever the code is set to, but I am having no success in this endeavour. The code will not compile and gives me errors.

If this is the case then that's fine. I can live without any display info.

gmanni66 commented 2 years ago

Hi yes sorry I forgot about that part of the cose As I use the same box for different project I left the screen in So at the moment it only displaying the name It displays 2 lines On one it says BLE-MIDI and next line is ControlChange ☺️ Not much else If you are ok with a static display you need to change the library and how to display whatever you need However, if you want a more interactive displays I'm sure is possible as the library from Pieter is huge But I couldn't pull any data with the app I was using was only one direction

Celticpure commented 2 years ago

Ok, that answers my question regarding the display. Thank you.

Regarding the numbering of the buttons what does the "CC №" mean? (SEE BELOW FOR REF). Does this CC № need to be changed for any reason? I get the pin No, this can be changed to whatever pins available on my esp32 unit. But when I flash to my esp32, none of my assigned pins respond through the serial monitor in Arduino IDE or any BLE app on Android.

CCButtonLatched button1 {32, 65}; // {pin №, CC №}

Thanks again.