Search found 140 matches

by Bakisha
Thu Jan 13, 2022 9:36 pm
Forum: General discussion
Topic: USB Composite library MIDI Get Bytes without using Callbacks
Replies: 28
Views: 8028

Re: USB Composite library MIDI Get Bytes without using Callbacks

I can't say why sysex is not working, you could check if there is any updates of library.
As for USB, try not to press reset :D
Close any program that is using Maple midi-out, compile and flash, disconnect and reconnect USB cable, wait until computer recognize it and start program again.
by Bakisha
Wed Jan 12, 2022 9:22 pm
Forum: General discussion
Topic: USB Composite library MIDI Get Bytes without using Callbacks
Replies: 28
Views: 8028

Re: USB Composite library MIDI Get Bytes without using Callbacks

IMHO, yes, you'll need to program every event when received from or send to USB. Whole purpose of USB Composite library is that it can be detected to computer as midi device (for receiving and sending) and virtual com port at the same time. Maybe even HID device? I forgot the limitations... You can ...
by Bakisha
Wed Jan 12, 2022 2:43 pm
Forum: General discussion
Topic: USB Composite library MIDI Get Bytes without using Callbacks
Replies: 28
Views: 8028

Re: USB Composite library MIDI Get Bytes without using Callbacks

I have some test code from a time when i was experimented with midi, but i'm not sure what you are looking for. Anyway, this short sketch should send stuff over USB serial port, midi data received from PC as Maple midi out device (uploaded with st-link). #include <USBComposite.h> #define SPEAKER_PIN...
by Bakisha
Thu Oct 07, 2021 12:36 pm
Forum: General discussion
Topic: Bluepill and USBMIDI
Replies: 4
Views: 3170

Re: Bluepill and USBMIDI

As i recall from my experiments with audio and MIDI, on Roger's (and Steve's) core for bluepill (STM32F103C8/B) there is built-in USBComposite library that can act as USB MIDI device (but i'm not 100% sure is it compatible with HID bootloader). ST core don't have MIDI class implemented, but maybe ar...
by Bakisha
Sun Sep 26, 2021 10:30 am
Forum: STM32F1 based boards
Topic: Timers 15-16-17 on Blue Pill
Replies: 7
Views: 9122

Re: Timers 15-16-17 on Blue Pill

jcbuntu wrote: Sat Sep 25, 2021 1:56 pm So, i don't understand why RM0041 says that TIM15, 16, 17 are for all devices :
RM0041 is reference manual for STM32F100xx.
RM0008 is for Bluepill (medium density, STM32F103xx). Page 40.
by Bakisha
Thu Sep 16, 2021 3:55 pm
Forum: General discussion
Topic: Bluepill project transferring to Blackpill
Replies: 5
Views: 2940

Re: Bluepill project transferring to Blackpill

For timer (interrupt only): HardwareTimer *timer = new HardwareTimer(TIM5); uint16_t prescalefactor = 0xFF; volatile uint16_t timer_value = 10; volatile bool timer_tick = true; void overflowISR() { timer_tick = true; } void setup() { timer->pause(); timer->setPrescaleFactor(prescalefactor); timer->s...
by Bakisha
Thu Sep 16, 2021 2:02 pm
Forum: General discussion
Topic: Bluepill project transferring to Blackpill
Replies: 5
Views: 2940

Re: Bluepill project transferring to Blackpill

Sorry, my mistake. Just because you posted in forum's section for STM32 core , i assumed you want to use STM32 core. Anyway, you are right, it doesn't matter what timer are you using, since it is only for interrupt, not for PWM on a pin. SPISettings settingsA(70000000, MSBFIRST, SPI_MODE2); will set...
by Bakisha
Wed Sep 15, 2021 9:39 pm
Forum: General discussion
Topic: Bluepill project transferring to Blackpill
Replies: 5
Views: 2940

Re: Bluepill project transferring to Blackpill

- Better re-check pinout for you board. On STM32F401CC TIM5 is connected to PA0/1/2/3. TIM2 is alternate function, not default. You could compare to bluepill: F401 https://github.com/stm32duino/Arduino_Core_STM32/blob/master/variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/PeripheralPins_BLACKPILL...
by Bakisha
Thu Aug 26, 2021 9:45 pm
Forum: STM32F4 based boards
Topic: Adafruit_ST7735 > 1.1.0 not working
Replies: 18
Views: 17279

Re: Adafruit_ST7735 > 1.1.0 not working

I can confirm that it's working using D2/D3/D4 (and 2/3/4) instead of PA_2/PA_3/PA4.

I guess i've just being lucky.
What about port B pins? PB1 should work without underscore? I can't test that at the moment.
by Bakisha
Wed Aug 25, 2021 5:50 pm
Forum: STM32F4 based boards
Topic: Adafruit_ST7735 > 1.1.0 not working
Replies: 18
Views: 17279

Re: Adafruit_ST7735 > 1.1.0 not working

I just checked (on WeAct STM32F411CE), library version 1.7.3 .

It works if i use:

Code: Select all

#define TFT_DC PA_3 //
#define TFT_CS PA_4
#define TFT_RST PA_2
It doesn't work with:

Code: Select all

#define TFT_DC PA3 //
#define TFT_CS PA4
#define TFT_RST PA2
I don't know why it is behaving like that...

Go to advanced search