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.02 seconds.

  1. Replies
    20
    Views
    972

    Thanks to all for info about the ExChar16_t...

    Thanks to all for info about the ExChar16_t problem in SD. I installed a fresh Arduino 1.8.16 and put TD 1.56.b2 on top and the example now compiles, as do a couple of my sketches which failed.
    ...
  2. When the file is closed in the example, it is...

    When the file is closed in the example, it is still 40MB long. You can reduce the file's length to whatever has been written so far by using the truncate() function.
    Changing this:

    ...
  3. Replies
    20
    Views
    972

    I installed b2 over b1 and have run into a...

    I installed b2 over b1 and have run into a problem. The example/SD/SdFat_Usage does not compile (but it does compile with 1.55).

    In file included from...
  4. Replies
    18
    Views
    567

    I've checked the two uSD cards, and their...

    I've checked the two uSD cards, and their contents are identical to the original Scenes directory.
    I'll try your newer version on just the T3.6 with the builtin uSD this time.

    Pete
  5. Replies
    18
    Views
    567

    Yes. Pete

    Yes.

    Pete
  6. Replies
    18
    Views
    567

    I have been running the original version of the...

    I have been running the original version of the code (with slight mods) on a Teensy 3.6 and a Teensy 3.2. I have a T3.5 but unfortunately it's busy right now.
    The T3.6 has been running non-stop for...
  7. digitalWrite(pin_number,pin_state); E.g. ...

    digitalWrite(pin_number,pin_state);

    E.g.

    digitalWrite(10,HIGH);

    They can be grouped in ports and accessed directly but unless you really need simultaneous access, it is easier to just...
  8. Replies
    14
    Views
    488

    It also fails for T3.2 with 1.8.16 and 1.56 beta...

    It also fails for T3.2 with 1.8.16 and 1.56 beta 1

    Pete
  9. The code below should use the queues to just pass...

    The code below should use the queues to just pass input from line-in to the output.
    You can then modify the loop which does the copying to implement the AGC. I may have a shot at it myself :)
    ...
  10. Excellent. Pete

    Excellent.

    Pete
  11. Replies
    4
    Views
    287

    The FFT will execute 43 times per second or once...

    The FFT will execute 43 times per second or once every 23 milliseconds. Which should be fast enough.
    However, you are redrawing every one of the 900 pixels each time. I haven't used led strips so I...
  12. digitalWrite(ADDR[6], ((j & 0x60) ? HIGH : LOW));...

    digitalWrite(ADDR[6], ((j & 0x60) ? HIGH : LOW));
    digitalWrite(ADDR[7], ((j & 0x40) ? HIGH : LOW));
    Presumably should be:

    digitalWrite(ADDR[6], ((j & 0x40) ? HIGH : LOW));
    ...
  13. I don't think Teensyduino 1.55 will work with...

    I don't think Teensyduino 1.55 will work with Arduino 1.8.13 (which is rather old anyway).
    Do a clean install of the latest version of Arduino 1.8.16 and then install Teensyduino 1.55 over that.
    ...
  14. 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...
  15. 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...
  16. Replies
    4
    Views
    259

    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
  17. Replies
    4
    Views
    259

    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
  18. Replies
    7
    Views
    509

    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...
  19. Replies
    11
    Views
    489

    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);
    ...
  20. Replies
    8
    Views
    402

    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...
  21. Replies
    8
    Views
    402

    How did you do it? Pete

    How did you do it?

    Pete
  22. Replies
    8
    Views
    402

    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
  23. Replies
    11
    Views
    1,368

    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
  24. Replies
    6
    Views
    348

    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...
  25. I was grasping at straws to start with. None left...

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

    Pete
  26. 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...
  27. 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
  28. Post your code (in code tags please). Pete

    Post your code (in code tags please).

    Pete
  29. 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.
    ...
  30. Replies
    10
    Views
    462

    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...
  31. Replies
    10
    Views
    462

    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...
  32. Replies
    15
    Views
    506

    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:
  33. Replies
    15
    Views
    506

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

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

    Pete
  34. 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...
  35. 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...
  36. 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
  37. 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...
  38. 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
  39. 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...
  40. 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...
  41. 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...
  42. 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...
  43. 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...
  44. Replies
    6
    Views
    467

    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
  45. Replies
    6
    Views
    467

    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)) *...
  46. 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...
  47. 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
  48. 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
  49. 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
  50. 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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4