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. @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...
  2. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    93

    No problemo :D Pete

    No problemo :D

    Pete
  3. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    93

    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...
  4. Replies
    10
    Views
    131

    Does it toggle the LED every two seconds? Pete

    Does it toggle the LED every two seconds?

    Pete
  5. Replies
    10
    Views
    131

    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
  6. 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...
  7. 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...
  8. Replies
    4,295
    Views
    447,744

    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...
  9. Replies
    4,295
    Views
    447,744

    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...
  10. Replies
    4,295
    Views
    447,744

    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%...
  11. Replies
    4
    Views
    286

    Frank B says it works...

    Frank B says it works

    Pete
  12. Replies
    24
    Views
    13,074

    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
  13. Yes, frequency is in Hz. Pete

    Yes, frequency is in Hz.

    Pete
  14. 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...
  15. Replies
    161
    Views
    9,833

    Install the new Teensyduino release 1.47...

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

    Pete
  16. Replies
    2
    Views
    129

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

    From the 1.47 release notice, Paul wrote:


    Pete
  17. 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...
  18. Replies
    4,295
    Views
    447,744

    Yes, it needs verbose to be selected. Pete

    Yes, it needs verbose to be selected.

    Pete
  19. Replies
    4,295
    Views
    447,744

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

    I compiled and installed your code. Works here.

    Pete
  20. Replies
    4,295
    Views
    447,744

    @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...
  21. Replies
    161
    Views
    9,833

    Yep, CR2032. Pete

    Yep, CR2032.

    Pete
  22. Replies
    161
    Views
    9,833

    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...
  23. Replies
    10
    Views
    119

    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...
  24. 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] <...
  25. Replies
    27
    Views
    1,138

    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
  26. Replies
    27
    Views
    1,138

    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...
  27. Thread: Teensy GPS

    by el_supremo
    Replies
    7
    Views
    129

    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
  28. Thread: Teensy GPS

    by el_supremo
    Replies
    7
    Views
    129

    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
  29. Replies
    161
    Views
    9,833

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

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

    Pete
  30. Replies
    4,295
    Views
    447,744

    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...
  31. Replies
    4,295
    Views
    447,744

    @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...
  32. Replies
    4,295
    Views
    447,744

    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...
  33. Replies
    4,295
    Views
    447,744

    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....
  34. Replies
    10
    Views
    190

    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...
  35. Replies
    10
    Views
    190

    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;...
  36. Replies
    10
    Views
    190

    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....
  37. Replies
    10
    Views
    190

    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...
  38. Replies
    10
    Views
    190

    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...
  39. Replies
    4
    Views
    140

    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...
  40. Replies
    5
    Views
    2,670

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

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

    Pete
  41. Replies
    68
    Views
    1,284

    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
  42. Replies
    68
    Views
    1,284

    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...
  43. Replies
    68
    Views
    1,284

    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...
  44. Replies
    68
    Views
    1,284

    I haven't a clue what you have tried with that...

    I haven't a clue what you have tried with that sketch but obviously everything you've done is wrong.
    Post a version of the sketch, explain what it is doing wrong and perhaps we can figure it out so...
  45. Replies
    68
    Views
    1,284

    Have you modified the Many_Buttons_Knobs code to...

    Have you modified the Many_Buttons_Knobs code to use your specific analog and digital pins. If so, which ones are you using? Post the code.

    Pete
  46. Replies
    68
    Views
    1,284

    That's because it configures each digital pin...

    That's because it configures each digital pin with an internal pullup resistor:

    pinMode(DIGITAL_PINS[i], INPUT_PULLUP);
    which means you don't need to add external resistors.

    Which Teensy...
  47. Replies
    4,295
    Views
    447,744

    @mjs513: I used the minray code which is at...

    @mjs513: I used the minray code which is at various places on the internet. I've attached a zip of the code and an image.

    Pete
  48. Replies
    10
    Views
    209

    The code is set up to read a button on pin 2....

    The code is set up to read a button on pin 2. Even if you just have a piece of wire connected to pin 2, the sound should be played whenever you touch the wire to ground and then release it again.
    ...
  49. Replies
    10
    Views
    209

    The first problem is that you've got two...

    The first problem is that you've got two definitions of setup()

    void setup() {
    // put your setup code here, to run once:

    //six more lines from magazine
    void setup() {
    You've also got two...
  50. Replies
    10
    Views
    209

    #include “AudioSampleKick.h” Those are the wrong...

    #include “AudioSampleKick.h”
    Those are the wrong kind of quotes. Use this:

    #include "AudioSampleKick.h"

    Pete
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4