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. shape expects a (float *) as its first argument....

    shape expects a (float *) as its first argument. Just cast it and the warning will go away.

    waveshape1.shape((float *)wave_shape_flat, 2);
    and similarly for the other two.

    Pete
  2. Replies
    6
    Views
    92

    When the switch is closed you should get a solid...

    When the switch is closed you should get a solid 0

    Pete
  3. How long is the system going to be underwater?...

    How long is the system going to be underwater?
    Is the oscillator only counted down to keep track of seconds or are you using it for stamping events with a much higher precision than seconds?

    Pete
  4. Replies
    5
    Views
    112

    There should not be a problem with any of the...

    There should not be a problem with any of the names you've mentioned, but you've used single quotes here. Could it be something as simple as using single quotes instead of double quotes in the code?...
  5. Try setting the gain of all the mixer inputs at...

    Try setting the gain of all the mixer inputs at every stage to 0.25

    Pete
  6. Hmm. I'll have to ponder that. BTW what is...

    Hmm. I'll have to ponder that.
    BTW what is readline? It looks like you are reading a line from Serial and a line from Serial2 into the same buffer. If so, that'll be quite messy.

    Pete
  7. Don't redeclare MySerial. Just assign a new value...

    Don't redeclare MySerial. Just assign a new value to it.

    MySerial = Serial2;
    .
    .
    .
    MySerial = Serial;

    Pete
  8. @icecold: I can't get your code to compile. I...

    @icecold: I can't get your code to compile. I haven't got Control_Surface.h so I just commented that out.
    Although there is an Encoder.h in Teensyduino, the compiler doesn't know what...
  9. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    98

    No problemo :D Pete

    No problemo :D

    Pete
  10. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    98

    The underscore is a valid character anywhere in a...

    The underscore is a valid character anywhere in a C/C++ variable name. It doesn't mean anything special in the language (i.e. to the compiler) but can be used to make a variable name easier to read...
  11. Replies
    10
    Views
    166

    Does it toggle the LED every two seconds? Pete

    Does it toggle the LED every two seconds?

    Pete
  12. Replies
    10
    Views
    166

    When I added this statement to your code: ...

    When I added this statement to your code:

    const uint8_t out = LED_BUILTIN;
    it works. Teensy 4(beta 2) with current Arduino and Teensyduino on Windows 10.

    Pete
  13. Why do you have three delay buffers? You store...

    Why do you have three delay buffers? You store the same sample in each one and otherwise never change their content. Therefore all three always have the same content.
    I think you can use just one...
  14. const PROGMEM int LFO_TABLE[]= I think the...

    const PROGMEM int LFO_TABLE[]=
    I think the PROGMEM has to go at the end of the declaration, like this:

    const int LFO_TABLE[] PROGMEM =
    because it is defined as a storage attribute:

    #define...
  15. Replies
    4,311
    Views
    458,603

    I started the 3rd attempt running this morning...

    I started the 3rd attempt running this morning and left it for a couple of hours. No errors at all, even when dragging/resizing the monitor window.
    But then I wanted to run a different sketch on a...
  16. Replies
    4,311
    Views
    458,603

    Just tried the 3rd attempt. Looks like a winner....

    Just tried the 3rd attempt. Looks like a winner. Even if I pull the plug or hold the button for 20 seconds, it still recovers without an error message.
    Speed seems to be the same - varies from...
  17. Replies
    4,311
    Views
    458,603

    I've tried the 2nd attempt on Windows 10 Pro x64...

    I've tried the 2nd attempt on Windows 10 Pro x64 on a 6 cpu (12 hyperthreads) i7-6800K @3.4GHz and 64GB of ram with arduino 1.8.9 + TD1.47
    If I just leave it running, the Java process uses about 5%...
  18. Replies
    4
    Views
    349

    Frank B says it works...

    Frank B says it works

    Pete
  19. Replies
    24
    Views
    13,166

    SPI.setSCK(14); and there's also SPI.setMOSI(7)...

    SPI.setSCK(14);
    and there's also SPI.setMOSI(7) if you need it.

    Pete
  20. Yes, frequency is in Hz. Pete

    Yes, frequency is in Hz.

    Pete
  21. This works for me on T4B2. It's a newer version...

    This works for me on T4B2. It's a newer version from Frank B.

    Pete
    P.S. I've only used it for 12000Hz but it should be good for other rates.



    #include <Audio.h>
    #include...
  22. Replies
    161
    Views
    10,643

    Install the new Teensyduino release 1.47...

    Install the new Teensyduino release 1.47 https://forum.pjrc.com/threads/57216

    Pete
  23. Replies
    2
    Views
    139

    From the 1.47 release notice, Paul wrote: ...

    From the 1.47 release notice, Paul wrote:


    Pete
  24. while (recQueue.available() >= 2) { ...

    while (recQueue.available() >= 2) {
    file.write((byte*)recQueue.readBuffer(), 256);
    recQueue.freeBuffer();
    }
    This will leave one record buffer in the queue. Wouldn't it be better to use...
  25. Replies
    4,311
    Views
    458,603

    Yes, it needs verbose to be selected. Pete

    Yes, it needs verbose to be selected.

    Pete
  26. Replies
    4,311
    Views
    458,603

    I compiled and installed your code. Works here. ...

    I compiled and installed your code. Works here.

    Pete
  27. Replies
    4,311
    Views
    458,603

    @mjs513: Post your imxrt-size.c and I'll give it...

    @mjs513: Post your imxrt-size.c and I'll give it a try.

    Pete
    P.S. I've just realized that it doesn't appear to have done anything since I updated to b7. I'll look at it.
    P.P.S. I had forgotten...
  28. Replies
    161
    Views
    10,643

    Yep, CR2032. Pete

    Yep, CR2032.

    Pete
  29. Replies
    161
    Views
    10,643

    In this message...

    In this message Paul said that "Teensy Loader and the new bootloader also now automatically initialize the RTC to your PC's time."
    I wrote a sketch to synchronize the T4B2 RTC to a GPS. When I...
  30. Replies
    10
    Views
    134

    Are you using the Windows installer version of...

    Are you using the Windows installer version of the IDE? If so, try using the ZIP file instead.
    - Download the Windows ZIP IDE
    - Unzip it into C:\ (Not Program Files)
    - install Teensyduino on top...
  31. At line 45 you have: for (int y = 0; y...

    At line 45 you have:

    for (int y = 0; y < rows; y++)
    {
    for (int x = 0; x < cols; x++)
    {
    if (duty_cycle[x*cols + y] <...
  32. Replies
    27
    Views
    1,195

    I've just got your code partially working on a...

    I've just got your code partially working on a Teensy 3.2
    That noise is definitely caused by the lfo table. I'll have a closer look at it tomorrow.

    Pete
  33. Replies
    27
    Views
    1,195

    Try declaring this lot as volatile: volatile...

    Try declaring this lot as volatile:

    volatile int16_t in_ADC0, in_ADC1, out_DAC0, out_DAC1; //variables for 2 ADCs values (ADC0, ADC1)
    volatile int16_t POT0, POT1, POT2; //variables for 3 pots...
  34. Thread: Teensy GPS

    by el_supremo
    Replies
    7
    Views
    145

    Just copy and paste the text into your message...

    Just copy and paste the text into your message (between code tags). So much easier to read.

    Pete
  35. Thread: Teensy GPS

    by el_supremo
    Replies
    7
    Views
    145

    The default baud rate for the Adafruit Ultimate...

    The default baud rate for the Adafruit Ultimate GPS is 9600 baud. The TinyGPS++ code works for me with the Adafruit GPS (at 9600) even with the software serial.

    Pete
  36. Replies
    161
    Views
    10,643

    @MichaelMeissner: In msg #17 you referred to...

    @MichaelMeissner: In msg #17 you referred to "DAT" - do you mean DAC?

    Pete
  37. Replies
    4,311
    Views
    458,603

    It reports a wild number for DTCM. ITCM : ...

    It reports a wild number for DTCM.


    ITCM : 63616 B (48.54% of 128 KB)
    DTCM : 451264 B (344.29% of 128 KB) <<< 344% ?
    OCRAM: 33792 B (12.89% of 256 KB)
    Flash: 499616 B (31.76% of 1536...
  38. Replies
    4,311
    Views
    458,603

    @Frank B: I tried imxrt-size.exe today (with TD...

    @Frank B: I tried imxrt-size.exe today (with TD beta5) and it didn't output anything. It turns out that _teensy_model_identifier is 0x24 instead of 0x23. imxrt-size only prints info if the model is...
  39. Replies
    4,311
    Views
    458,603

    I have made a quick workaround to the problem....

    I have made a quick workaround to the problem. There is an #if statement in beta4 Audio/output_i2s.cpp which was removed in beta5 but the matching #elif and #endif are still there.
    I have just added...
  40. Replies
    4,311
    Views
    458,603

    Just a heads up. I installed beta 5 over top of...

    Just a heads up.
    I installed beta 5 over top of beta 4 and then compiled a test of an audio microphone test sketch which I had successfully compiled 5 minutes previously with beta 4 for the T4B2....
  41. Replies
    10
    Views
    208

    uint16_t resultCode = (results.value & 0xFFFF); ...

    uint16_t resultCode = (results.value & 0xFFFF);
    if (resultCode == 0xFFFF)
    .
    .
    switch (resultCode)
    {

    case BUTTON_volup:

    The problem is that the result value from...
  42. Replies
    10
    Views
    208

    BTW. The compiler gives a warning for each of...

    BTW. The compiler gives a warning for each of these:

    const uint16_t BUTTON_volup = 0xFFA857; //ir remote codes
    const uint16_t BUTTON_voldown = 0xFFE01F;
    const uint16_t BUTTON_back = 0xFF22DD;...
  43. Replies
    10
    Views
    208

    The problem is that both the IRremote library (in...

    The problem is that both the IRremote library (in IRremoteInt.h) and the Audio library (in synth_wavetable.h) use the name STATE_IDLE. Either or both of them should use a more specific name, e.g....
  44. Replies
    10
    Views
    208

    I played with the order of the includes. It...

    I played with the order of the includes. It appears to be an interaction between Audio.h and IRremote.h.
    This works:

    #include <Encoder.h>
    #include <Bounce.h>
    #include <EEPROM.h>

    #include...
  45. Replies
    10
    Views
    208

    I don't know why this works, but move all of...

    I don't know why this works, but move all of these #includes:

    #include <IRremote.h>
    #include <Encoder.h>
    #include <Bounce.h>
    #include <EEPROM.h>

    to just before this:

    #define SDCARD_CS_PIN...
  46. Replies
    4
    Views
    153

    You also need to unmute the lineout first. ...

    You also need to unmute the lineout first.

    sgtl5000_1.unmuteLineout();
    // According to info in libraries\Audio\control_sgtl5000.cpp
    // 31 is LOWEST output of 1.16V and 13 is HIGHEST output...
  47. Replies
    5
    Views
    2,786

    @Robin. The link to the homepage requires a login...

    @Robin. The link to the homepage requires a login name and password.

    Pete
  48. Replies
    68
    Views
    1,400

    Yes, the one I posted in #19. It uses pins 0, 1...

    Yes, the one I posted in #19. It uses pins 0, 1 and 2 and each one causes a MIDI note to be sent.

    Pete
  49. Replies
    68
    Views
    1,400

    No. All you do is comment the one statement in...

    No. All you do is comment the one statement in the loop statement that I showed.

    // getAnalogData();
    Here's the whole thing:

    /* Use arrays to manage lists of knobs/pots and pushbuttons.

    By...
  50. Replies
    68
    Views
    1,400

    Let's get the digital pins working first. Modify...

    Let's get the digital pins working first. Modify the code in the loop function and just comment out the analog part:

    // getAnalogData();
    That will stop it flooding the receiving end with...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4