Go Down

Topic: Bug found - is it too late to fix? (Read 3446 times) previous topic - next topic

ardudee2

The following program works fine for writeBlue or writeGreen, but fails for writeRed as soon as the tone function is called once. I tried to work around it by using writeRGB but the bug doesn't go away even with using that. The random delay code below just makes it easier to observe, and isn't related to the issue.

Code: [Select]
#include <Esplora.h>
void setup() {}
void loop() {
  while (1)
  { Esplora.writeBlue(random(200)); delay(500);
    Esplora.tone(random(100)); delay(500); };
}

pert

Why do you think it might be "too late to fix"?

ardudee2

Because the Esplora is a discontinued product, I guess.

ardudee2

Why do you think it might be "too late to fix"?
Do the people who are responsible the Esplora library code read these forums? Or do I need to consider finding the library code myself and trying to fix it myself? Where would I look for it?

pert

No, they usually don't read the forum. This is mostly a place for the Arduino community to talk and help each other.

It's certainly worth having a look at the library to see what you can do. I've never used an Esplora. I know that using Tone does interfere with PWM on certain pins.

ardudee2

Thanks for the info. I'm not smart enough to even know where to look for the Esplora code, so I'll just have to leave it to smarter people to fix.

jlsogorb

#6
Apr 25, 2018, 05:24 am Last Edit: Apr 25, 2018, 05:24 am by jlsogorb
Maybe the site you are looking for is this one:
https://github.com/arduino-libraries/Esplora

pert

Yes, that's it. If you want to find where the library is on your computer:
  • File > Examples > Esplora > Beginners > EsploraAccelerometer
  • Sketch > Show sketch folder - this will open the Esplora library's EsploraAccelerometer example sketch folder.
  • Navigate up three folder levels to the Esplora folder. You will find the library source code in the src subfolder. You can open those files with a text editor and edit them as you like.

oqibidipo


Go Up