Giter VIP home page Giter VIP logo

Comments (6)

cjnsario avatar cjnsario commented on July 29, 2024

Do you need to connect the electronic components first before uploading the code to the pico?

from picozoom.

Colatino avatar Colatino commented on July 29, 2024

You don't have to connect the components to compile or upload the code.

You may try downgrading your Arduino-pico core to version 2.5 and try again.

from picozoom.

cjnsario avatar cjnsario commented on July 29, 2024

Tried installing 2.5, but no luck my friend. Still gives the same error:

In file included from C:\Users\CJNS\AppData\Local\Temp\arduino\sketches\4C227CEA44EA234455A3C8DA0790A71E\sketch\beta.ino.cpp:1:
C:\Users\CJNS\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\2.5.0\cores\rp2040/Arduino.h:106:10: fatal error: Adafruit_USBD_CDC.h: No such file or directory
106 | #include "Adafruit_USBD_CDC.h"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1

from picozoom.

Colatino avatar Colatino commented on July 29, 2024

For some reason the IDE is not finding the Adafruit_USBD_CDC.h file but the Arduino-Pico core comes with the standard one already preinstalled, this error should not appear even if you didn't copy the custom library to the Arduino/libraries folder.

Are you certain that you copied the library to the correct folder? It is usually installed in Documents/Arduino/libraries...

If nothing else, try uninstalling the custom library and recompiling to see if another error pops up...

from picozoom.

cjnsario avatar cjnsario commented on July 29, 2024

Hello. I managed to make the code work by reinstalling the Arduino IDE (1.8.18). Last question. Is there a way to make one screen to display only the delay? I only used one switch and screen and it shows the first effect on the chain. My delay usually goes 4th on the chain.

from picozoom.

Colatino avatar Colatino commented on July 29, 2024

Yes, it is possible and currently the most asked feature!

To do that you'll have to change some significant parts of the code in the ino file. Without investing too much time on it i think you'll need to:

  • Change the NUM_SLOTS and NUM_PEDALS constant to 1 in the g1xfour.h

  • Change the parse_patch function to only store an effect if it is a delay (I already check for this in these lines but you'll have to figure out how to do this before), maybe something like this will do:

if (index > -1) {
        current_patch.delay[i] = false;
        for (int j = 0; j < N_DELAYS; j++) {
          if (delay_ids[j] == id) {
            current_patch.delay[i] = true;
            break;
          }
        }
        // Check if it is a delay and stores the correct delay slot to manipulate it
        if (current_patch.delay[i]){
            current_patch.effects[i] = effects[index];
            current_patch.states[i] = state;
            current_patch.slots[i] = current_patch.cur_slot;
            break;
        }        
        current_patch.cur_slot += effects[index].nslots;       
      }

I have not tested this but i think this is the way to go. If it works you'll be able to toggle the delay on/off and also change the tempo (and the second tempo if it is that kind of effect).

I would be pleased if you could test it and report back if that worked

from picozoom.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.