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. Replies
    1
    Views
    62

    TimeLib.h in hardware\teensy\avr\libraries\Time...

    TimeLib.h in hardware\teensy\avr\libraries\Time declares them to be int

    Pete
  2. Which Teensy are you going to use? How long a...

    Which Teensy are you going to use? How long a recording do you want?

    Pete
  3. For example, in the read_all_data example, it...

    For example, in the read_all_data example, it uses this to instantiate the device:

    Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
    You would just change it to

    Adafruit_BNO055 bno =...
  4. I believe that all you have to do is change ...

    I believe that all you have to do is change

    *theWire = &Wire
    to

    *theWire = &Wire2

    Oh, hang on. You don't have to change the library. All you do is reference &Wire2 when you instantiate the...
  5. Replies
    12
    Views
    361

    It might work if it was counting audio cycles but...

    It might work if it was counting audio cycles but as far as I know there's no way to do that.

    Pete
  6. Replies
    4
    Views
    163

    I have two versions of a MIDI library on my...

    I have two versions of a MIDI library on my system. The one in the TeensyDuino distribution does not have BaudRate in the DefaultSettings struct (in midi_Settings.h) whereas the one I've installed in...
  7. Ooops. I appear to be using an older version of...

    Ooops. I appear to be using an older version of the display which was set up as a shield for Arduino UNO and used parallel data transfer rather than SPI.

    Pete
  8. Thread: teensy midi

    by el_supremo
    Replies
    9
    Views
    291

    If you compile that code for Teensy4, and...

    If you compile that code for Teensy4, and assuming that you add some appropriate code to call these functions, it will not generate any MIDI messages - it will only output debugging messages to the...
  9. Which Teensy are you using? Which code were you...

    Which Teensy are you using?
    Which code were you using and how was the display wired?
    I'm currently playing around with a 240x320 ILI9341-based display. First, I got it working on an Arduino...
  10. Replies
    12
    Views
    361

    I didn't say you were inventing anything, but I...

    I didn't say you were inventing anything, but I couldn't see how you were getting useful waveforms from Pins 9 and 11.


    Yeah, whatever. Now you're using the correct pin for the DAC on a Teensy...
  11. Replies
    12
    Views
    361

    You're going to have to explain this in detail....

    You're going to have to explain this in detail. Pin 9 is a digital pin which can also be used to generate PWM output. Pin 11 is a digital pin only.
    So, it's a mystery how you can be seeing "the...
  12. Replies
    134
    Views
    5,669

    On the 4.1 page...

    On the 4.1 page under Pixel Pipeline I presume that this:

    color spare transformation
    should be

    color space transformation

    Pete
  13. Having dug through the DallasTemperature library...

    Having dug through the DallasTemperature library again, I see that if getTempCByIndex returns -127, it is an error indication which means that the specified device did not respond. You should look...
  14. On the github site you say: To me, this is a...

    On the github site you say:

    To me, this is a classic indication that your code is writing over the end of an array or in some other way clobbering ram. Changing the order of the include files...
  15. float and double are the same on most Arduinos...

    float and double are the same on most Arduinos and Teensys before 4.0 because "double" arithmetic is very slow on processors which don't have the double precision hardware. It also saved precious ram...
  16. This "%1.9lf" might cause confusion too. If you...

    This "%1.9lf" might cause confusion too. If you want double it should be something like "%24.20lf".

    Pete
  17. You've declared them all as float. The addition...

    You've declared them all as float. The addition and division are done as float with the result having float precision which is only about 7 digits.
    Declare them as double or cast them.

    Pete
  18. Which Teensy are you compiling this for? The...

    Which Teensy are you compiling this for? The earlier ones don't have a builtin SD card.
    Or insert #include <SD.h> at the top of the file.

    Pete
  19. @jwestmoreland: Have you had any luck with my...

    @jwestmoreland: Have you had any luck with my code? I don't know anything about the Stormwise antenna but it looks like it isn't tuned specifically for 60kHz like the antenna I use.

    Pete
  20. Replies
    9
    Views
    275

    An even older-fashioned Merry Christmas to All....

    An even older-fashioned Merry Christmas to All. I'll be overdosing on turkey in about an hour.

    Pete
  21. If the audio is suitably bandwidth-limited, you...

    If the audio is suitably bandwidth-limited, you could lower the sampling rate, for example to 8kHz, and get much higher resolution from the FFT - a bit less than 8Hz per bin. The highest frequency...
  22. Those pins on their own won't be sufficient for...

    Those pins on their own won't be sufficient for SPI1.
    The four SPI1 pins on the T4.1 are:
    D0 CS1
    D1 MISO1
    D26 MOSI1
    D27 SCK1
    As shown here and on the card that came with your T4.1
    ...
  23. Ignore this

    Ignore this
  24. Replies
    3
    Views
    99

    They aren't dedicated like those on an Arduino....

    They aren't dedicated like those on an Arduino. The Serial interface goes directly through USB and does not use pins 0 and 1. Those pins can be treated just like other digital pins. They are also the...
  25. Does it crackle if you use the original waveform...

    Does it crackle if you use the original waveform object?

    Pete
  26. You're going to have to post some code which...

    You're going to have to post some code which demonstrates the problem, including the "modified versions of the Waveform object".

    Pete
  27. Replies
    4
    Views
    168

    I've just got one of that type of display working...

    I've just got one of that type of display working today. I think part of your problem might be that you use ST7789_t3 when you are using the T4?
    The only graphics includes I use are:

    #include...
  28. setI2SFreq fails on T4.x when sampling frequency is 8000Hz

    setI2SFreq fails on a T4.x when the required sampling frequency is 8kHz. The reason is that it calculates a value for n2 of 80 but this value must fit in a 6-bit field and therefore must not exceed...
  29. You can make the code handle any value of...

    You can make the code handle any value of setAccentPattern by changing this:

    if (accentPattern == 0)
    velocity = accentVelocity; // we want it on this step
    ...
  30. I installed Frank's library and compiled the code...

    I installed Frank's library and compiled the code in #1 for a T3.2. It compiles without error as does the original Mp3FilePlayer example.


    This suggests that you didn't compile it for the T3.2...
  31. SPI uses pin13 as its SCK signal but pin 13 is...

    SPI uses pin13 as its SCK signal but pin 13 is also the LED. You can try moving SCK to pin 14:

    SPI.setSCK(14);

    Pete
  32. Replies
    3
    Views
    194

    If you include a #warning or #error message in...

    If you include a #warning or #error message in your code it will be written to the compiler window. The #error message also stops compilation.
    I thought there was one for #message but it doesn't...
  33. Is there any chance you can avoid that by using...

    Is there any chance you can avoid that by using one of Serial 6, 7 or 8 instead?

    Pete
  34. Replies
    5
    Views
    212

    Adafruit has their own fork (version) of the PJRC...

    Adafruit has their own fork (version) of the PJRC audio library. It is a somewhat stripped down version of the original PJRC code. In particular, the Adafruit fork does not have AudioInputAnalog...
  35. Your problem isn't related to mine. You appear to...

    Your problem isn't related to mine. You appear to be using an older version of the cardinfo example. The latest version has root.openRoot and root.ls commented out.
    As Paul has suggested, try...
  36. I ran into a similar problem except that my code...

    I ran into a similar problem except that my code couldn't find a file that I knew to be on the SD card - because Windows Explorer showed that it was there.
    I used the listfiles example SD sketch to...
  37. Replies
    11
    Views
    653

    The sketch identifies the part: Part Nummber:...

    The sketch identifies the part:

    Part Nummber: W25Q256FV
    but I think you need W25Q256JV for it to work.

    Pete
  38. digitalRead(cols[i] == HIGH) The value of HIGH...

    digitalRead(cols[i] == HIGH)
    The value of HIGH is probably 1 and cols[i] is never 1 so the result is FALSE which is zero. The result will be that it will try to read pin 0. In a test on a T4.1 the...
  39. if(digitalRead(rows[j]) == HIGH &&...

    if(digitalRead(rows[j]) == HIGH && digitalRead(cols[i] == HIGH))// if the current key is pressed

    There's a parenthesis in the wrong place. It should be:

    if(digitalRead(rows[j]) == HIGH &&...
  40. @Paul: I've created a PR for this Pete

    @Paul: I've created a PR for this

    Pete
  41. There's a bug in effectRectifier.cpp. In its...

    There's a bug in effectRectifier.cpp. In its update function, it gets an audio block like this:

    audio_block_t *block = receiveReadOnly();
    but it overwrites the block!
    Change it to this:
    ...
  42. Replies
    18
    Views
    525

    Post photos of the wiring. Pete

    Post photos of the wiring.

    Pete
  43. Replies
    18
    Views
    525

    You should have radio details on both screens...

    You should have radio details on both screens unless the RF24 library for the Mega is different than the T4.1.
    If it really does work for a few lines, i.e. the sender sometimes looks like this:

    ...
  44. Replies
    18
    Views
    525

    I'm using this code on both Teensys with slight...

    I'm using this code on both Teensys with slight modifications for the transmitter and receiver.

    I set both of them to start up as a receiver (role = 0) and then type T in one of them to get things...
  45. Replies
    18
    Views
    525

    Another problem is that Tx and Rx don't set the...

    Another problem is that Tx and Rx don't set the payload size. The default payload size is 32 bytes but the code is only sending 4 bytes.
    After the radio.begin() statement, add this line to both Tx...
  46. Replies
    18
    Views
    525

    I'm pretty sure the problem is that the Tx and Rx...

    I'm pretty sure the problem is that the Tx and Rx aren't using the same addresses.
    In both the Rx and Tx use this for the addresses:

    const uint64_t pipes[2] = { 0xF0F0F0F0E1LL, 0xF0F0F0F0D2LL };...
  47. Replies
    18
    Views
    525

    Post the code you're using. Pete

    Post the code you're using.

    Pete
  48. Replies
    2
    Views
    127

    Post your code which tries to "attach it to a...

    Post your code which tries to "attach it to a mixer out" and explain how it fails.

    Pete
  49. Now it doesn't compile for me either. OK, let's...

    Now it doesn't compile for me either. OK, let's tackle this a different way. Unfortunately it requires editing several system files.
    Each of the serial devices for Teensy 4 (I presume that's what...
  50. That looks like a problem with the default...

    That looks like a problem with the default receive buffer size of 64 bytes (Tx default is 40). You can add extra receive and transmit buffer space to each Serial device.
    Declare these globally:
    ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4