Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: el_supremo

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. I did get note repeats working but only after I...

    I did get note repeats working but only after I had modified the code quite a bit to use millis() as a "fudged" sort of clock source. My SY77 apparently will send a MIDI Clock signal but I haven't...
  2. Try initializing dm_channel_select to 1 (or...

    Try initializing dm_channel_select to 1 (or whatever channel your keyboard uses). If your MIDI device sends Active Sense, for example, dm_channel_received will be set to zero while the code is still...
  3. Replies
    4
    Views
    117

    Yes, soldering is essential. The pins aren't...

    Yes, soldering is essential. The pins aren't making a proper electrical contact.

    You will also need to solder the pins on the Teensy too.

    Pete
  4. Replies
    4
    Views
    117

    Are the Teensy pins soldered to the audio board?...

    Are the Teensy pins soldered to the audio board?
    Can you show a photo of the bottom of the audio board?

    Pete
  5. Replies
    6
    Views
    289

    Does Pin 1 (PIN_Button_Start) work reliably? It...

    Does Pin 1 (PIN_Button_Start) work reliably? It seems to me that you need a pulldown resistor on pin 1 to hold the pin LOW until the button is pushed.
    The easy fix is to change the pinMode from...
  6. Replies
    11
    Views
    321

    Use this for the setup function: void setup()...

    Use this for the setup function:

    void setup()
    {
    AudioMemory(12);

    // Enable the audio shield and set the output volume.
    sgtl5000_1.enable();
    sgtl5000_1.volume(0.5);
    ...
  7. Replies
    8
    Views
    276

    I've been playing around with the repeated start...

    I've been playing around with the repeated start feature of I2C. Although you can't read a large amount of data (e.g. 512 bytes) in one call to requestFrom, you can use the repeated start (if the...
  8. Replies
    8
    Views
    276

    How did you do it? Pete

    How did you do it?

    Pete
  9. Replies
    8
    Views
    276

    You may also need to increase the size of...

    You may also need to increase the size of TWI_BUFFER_LENGTH in Wire/utility/twi.h

    Pete
  10. I think the implementation of the rtc_get_ms...

    I think the implementation of the rtc_get_ms function may be incorrect.
    EDIT: Nope, my reading of that code was incorrect. Sorry.

    Pete
  11. Replies
    6
    Views
    241

    I'd just read the string up to the CRLF on the...

    I'd just read the string up to the CRLF on the end. First, check that the string is the correct length, otherwise ignore. Then make sure the string starts with 38, otherwise ignore. Read the particle...
  12. I was grasping at straws to start with. None left...

    I was grasping at straws to start with. None left now :)

    Pete
  13. In the photo, you have two separate ground wires...

    In the photo, you have two separate ground wires from the Teensy to the audio board. It looks like the red and green wires go to the Gnd and 3.3V pins on the audio board. But I can't figure out where...
  14. There doesn't seem to be anything wrong with the...

    There doesn't seem to be anything wrong with the code - no pin conflicts etc.
    Can you post a photo which clearly shows the connections to the Teesy2? Especially pins A0,A1,A2.

    Pete
  15. Post your code (in code tags please). Pete

    Post your code (in code tags please).

    Pete
  16. Post a photo of the connections to the Teensy2....

    Post a photo of the connections to the Teensy2.
    What is Midi learn?


    What is "It"? Where does this show? If you are referring to pin numbers then A0 is pin 21, A1 is pin 20 and A2 is pin 19.
    ...
  17. Replies
    10
    Views
    331

    And another observation nextMove = NULL; ...

    And another observation

    nextMove = NULL;

    if(nextMove)
    Serial.print("\n nextMove = ");Serial.print((*nextMove).x);
    Even if this if statement is parenthesized, this will never...
  18. Replies
    10
    Views
    331

    if(nextMove) Serial.print("\n nextMove =...

    if(nextMove)
    Serial.print("\n nextMove = ");Serial.print((*nextMove).x);
    Just an observation. You haven't parenthesized the scope of the if statement and therefore only the first .print is...
  19. Replies
    15
    Views
    362

    Try changing the beginning of serialEvent3 from...

    Try changing the beginning of serialEvent3 from this:

    if(dfd.length()>9) dfd="";
    if(dfd.endsWith(endChar)) dfd="";
    if(Serial3.available())
    {
    dfd += char(Serial3.read());

    To this:
  20. Replies
    15
    Views
    362

    What serial baud rate are you using to/from the...

    What serial baud rate are you using to/from the Nextion?

    Pete
  21. I tried the original code in your #1 (with a few...

    I tried the original code in your #1 (with a few mods to match what's on my breadboard). I trigger the interrupt with a button and the code does not work well in the presence of contact bounce.
    I...
  22. Point anywhere in the centre of the window (where...

    Point anywhere in the centre of the window (where it says "Press Button ...") and drag it.
    BTW. If you are using an old version of Teensyduino, this won't work. It was fixed in later versions and...
  23. entry.name() returns a pointer to a C-style...

    entry.name() returns a pointer to a C-style string - not to a String. Casting it will fix the problem:

    fileList[i] = (String)entry.name();

    Pete
  24. I figured out why you had 700ms for the longClick...

    I figured out why you had 700ms for the longClick so ignore my comments in message #5.
    I've added code to use the Bounce library and it works well on a T4 here.
    If you use the Bounce library you...
  25. Shouldn't that be > or >= ? That is the problem....

    Shouldn't that be > or >= ?
    That is the problem. The click sequence seems to make sense once that change is made. It might also help to reduce longClick to something like 100 (or even less).

    Pete
  26. void looperUp (int i){ if ((millis() -...

    void looperUp (int i){
    if ((millis() - timers[i]) < longClick) {

    Shouldn't that be > or >= ?
    As it is, it will respond to contact bounce (chatter). As @wootie11 suggests, have a look at the...
  27. I downloaded the Tsynth code, installed it,...

    I downloaded the Tsynth code, installed it, modified the two lines you mentioned, set up the IDE and it compiles.
    You didn't quite have the IDE set up properly. The reason for the complaint about...
  28. Can you describe exactly what you mean by "it...

    Can you describe exactly what you mean by "it crashes". Is it possible that the Teensy is still running but the device it is talking to has stopped responding?
    Would it be possible to add a piece of...
  29. I modified your new code to toggle the LED on...

    I modified your new code to toggle the LED on every 100 times through the loop function so that I can see that it is still running. It does not crash. Which version of TeensyDuino and Arduino are you...
  30. What does your condensed version of the code do?...

    What does your condensed version of the code do?
    In the loop function it only ever does updateSlider on sliderNumber 1.
    In the updateSliders function, case 2 in the switch statement sends a pitch...
  31. Replies
    6
    Views
    382

    You can use the "Go Advanced" button to attach an...

    You can use the "Go Advanced" button to attach an image to your message. It will allow bmp gif jpe jpeg jpg pdf png

    Pete
  32. Replies
    6
    Views
    382

    I haven't found any obvious problems in a casual...

    I haven't found any obvious problems in a casual look through the code but this code strikes me as odd:

    for (int a = teta_min_r; a <= teta_max_r; a++) {
    int x = sin(radians(a)) *...
  33. To expand a bit on what @defragster wrote: When...

    To expand a bit on what @defragster wrote: When that code is run, the USB port on the Teensy will appear as a COM port on the PC. You don't have to have the serial monitor on that COM port. A...
  34. I think the wiring is correct so the only thing I...

    I think the wiring is correct so the only thing I can suggest is to post a photo of the wiring between Teensy and display.

    Pete
  35. Sorry, I can't help with that. I've done...

    Sorry, I can't help with that. I've done practically nothing with Teensy related to interacting with a web page.

    Pete
  36. Ahhh, rats. Somehow I missed the declaration of...

    Ahhh, rats. Somehow I missed the declaration of begin() in SSD13XX.h where it defaults to false anyway.

    Pete
  37. It may be that it is not initializing SPI for...

    It may be that it is not initializing SPI for you. Try this:

    tft.begin(false);
    The begin method requires a boolean value telling it whether to call SPI.begin() for you. When you don't specify a...
  38. I've added some code which allows the CC number...

    I've added some code which allows the CC number to be changed by using the serial monitor to enter the index of the CC to be changed and the CC number - e.g. 0 17
    It's not exactly a web UI but it...
  39. I think the display's DIN should be on Teensy pin...

    I think the display's DIN should be on Teensy pin 11. The display only has input, so its DIN corresponds to what SPI usually calls MOSI (Master Out, Slave In, in this case Teensy is the Master).
    DIN...
  40. Replies
    11
    Views
    671

    There is no way to know. You haven't posted any...

    There is no way to know. You haven't posted any code and you haven't even said what it is supposed to do, nor what "stops working" actually means.
    You should reduce your code to the smallest amount...
  41. Replies
    6
    Views
    447

    It has the same directory path on Windows. Pete

    It has the same directory path on Windows.

    Pete
  42. Replies
    3
    Views
    289

    Sorry. I am not familiar with flight sim...

    Sorry. I am not familiar with flight sim software.

    Pete
  43. Replies
    3
    Views
    289

    If you're asking about the DCS-Bios for Arduino...

    If you're asking about the DCS-Bios for Arduino, I've downloaded and had a look at it. Some of the code in DcsBios.h refers directly to Arduino hardware registers which is why it won't compile for a...
  44. Replies
    1
    Views
    317

    This would be a quick and dirty start which will...

    This would be a quick and dirty start which will average every 8 samples up to sample 6360:

    for(int i = 10; i < 795*8; i += 8) // draw from 10 to 795 px - but I have 8192 (nFFT/2) values
    {
    ...
  45. Replies
    10
    Views
    679

    I tried it with: file.open(fileName,...

    I tried it with:

    file.open(fileName, FILE_WRITE);
    and that works. It also has the correct timestamp on the file - using a T3.6.

    Pete
  46. Replies
    46
    Views
    2,198

    FYI: I created a pull request on github for the...

    FYI: I created a pull request on github for the error that I found in the _Q_coeff array (see #33). The PR was accepted about an hour ago.

    Pete
  47. Replies
    46
    Views
    2,198

    Wikipedia...

    Wikipedia explains oversampling better than I can. Basically, it reduces the noise and increases the resolution but at the cost of having to collect more samples. This is why the 4096 OSR conversion...
  48. Replies
    46
    Views
    2,198

    You're welcome :) FYI. I notice that by...

    You're welcome :)

    FYI. I notice that by default the library uses an oversampling ratio of 4096 which will mean that it will take between 7 and 9 milliseconds to read the temperature or pressure...
  49. Replies
    46
    Views
    2,198

    As expected, I get the same pressures. I've also...

    As expected, I get the same pressures. I've also looked at the code itself and compared it with the datasheet. It looks correct to me and, as I mention in #37, the library matches the results in the...
  50. Replies
    46
    Views
    2,198

    Your loop function will only delay for 5 seconds...

    Your loop function will only delay for 5 seconds if it gets a valid reading from both sensors and in this case it will have read from each sensor twice, throwing away the first reading. If either...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4