Git files out of date

Hi all,

I’ve made the jump to using Visual Studio for programming my Patch SMs. Previously, I’ve used the Arduino environment to do several projects but wanted to give the C++ approach a go considering I wish to use the wonderful Cloudseed reverb effect.

As part of a new project I want to use one of the serial ports to receive commands to control the parameters of said reverb but have struggled getting the serial ports to work. After going through several forum threads I started to wonder about the version of the libraries I was using. I followed Takumi’s wonderful Youtube video for setting up the toolchain on Windows etc and all worked as described but I noticed today that one of the examples, SerialRead, was not on my computer. This is when I discovered that I wasn’t using the latest versions.

The issue is that I used GIT to install these libraries but I don’t understand why it’s not using the most recent ones?

I found CHANGELOG.md on the libDaisy zip that I just downloaded from the electro-smith github and is reads as version 7.1.0 but the one installed via GIT was version 5.4?

I am missing some subsequent routine I need to run in GIT?

Any leads would be helpful ?

Steve.

SerialRead is an Arduino (DaisyDuino) thing. Serial ports are handled differently in libDaisy.

https://electro-smith.github.io/libDaisy/group__libdaisy.html

Thanks for the reply tele_player.

Yeah I am aware of the differences. This was another level of explanation I was trying to avoid. I have tried the USB handler code but the Patch_SM model(??) library doesn’t have these. I’m not up with the terms. This is what led me to think the libraries installed via GIT are out of date. That’s why my question was focused on the library version.

I did find some update information in the Official Announcements but these appears to be only example code.

I’ll keep working at it.

Patch SM still uses libDaisy, so if you can find appropriate pin names, you can use serial.

Hey, I now have this working which at least confirms I have the correct pins connected.

But this is now going off subject because I found the DMA and BLOCKING code to be less useful than I thought. From my perspective as I mentioned, I’ve come from the Arduino IDE where I had a nice and simple SerialAvailable() to tell me when something was waiting in the buffer and I would then read it. I don’t see any of the example code show something similar. I’ve tried using the DMA and BLOCKING examples. There is the StartLog() function but I now get an error saying DaisyPatchSM’ has no member named ‘usb_handle’.

My quest continues…

In daisy_patch_sm.h:

UsbHandle   usb;

Thanks, so they changed the name just to annoy me :laughing:

The source code is the most useful Daisy documentation.

1 Like