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

Search:

Type: Posts; User: mjs513

Page 1 of 10 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    8
    Views
    230

    @joepasquariello Got a bit distracted but did...

    @joepasquariello
    Got a bit distracted but did test the change in post #6. An interesting thing is that if I run the encsim without the change the sketch crashes but will still work if I use a...
  2. Thanks Frank for jogging my memory - was using...

    Thanks Frank for jogging my memory - was using this lib for awhile years ago: https://github.com/thijse/Arduino-Log but forgot all about it - it was in my archives folder :)
  3. Replies
    97
    Views
    2,142

    @wwatson - @KurtE - @Frank B Just catching up...

    @wwatson - @KurtE - @Frank B
    Just catching up and just finished incorporating the changes in #90 so think I am now even.

    Yes Frank - I always loved that Codec library and glad its now working...
  4. Replies
    8
    Views
    230

    Going to get set up and give it a try in a bit...

    Going to get set up and give it a try in a bit and will let you know - but just reading your changes it looks correct but let me play with it a bit.
  5. Replies
    97
    Views
    2,142

    Ok just issued 2 PRs 1. Request to update the...

    Ok just issued 2 PRs

    1. Request to update the Audio library with changes to play_sd_wav and play_sd_raw: https://github.com/PaulStoffregen/Audio/pull/419
    and
    2. Request to @wwatson to update...
  6. Replies
    97
    Views
    2,142

    Just incorporated the change and seems to be...

    Just incorporated the change and seems to be working like a charm. Tested on a T4.1 without changing the RAM to NOCACHE using both 'P'lay All and 'p'lay single file



    Frank - incorporated the...
  7. Replies
    97
    Views
    2,142

    @KurtE - @wwatson - @Frank B Finally got...

    @KurtE - @wwatson - @Frank B

    Finally got around to soldering up a Rev C audio shield to test a T3.6 with the changes and codecs:
    1. SD Cards reads and plays all files without a problem except...
  8. Replies
    97
    Views
    2,142

    Oops - should have said no noise coming from...

    Oops - should have said no noise coming from speak and file seems to open and close really fast before getting the file.
  9. Replies
    97
    Views
    2,142

    We were experimenting (@KurtE and I) a bit more...

    We were experimenting (@KurtE and I) a bit more with the MPT_test_audio sketch and think I isolated the issue down with having to use nocache for RAM(XIP) region only when using a USB Drive. Figured...
  10. Replies
    65
    Views
    14,129

    As a quick test of write(0) I ran the simple...

    As a quick test of write(0) I ran the simple encoder example with only one KY-040 encoder attached. And write(0) seems to work for me:

    Left = 39, Right = 0
    Left = 40, Right = 0
    Reset both knobs...
  11. Replies
    8
    Views
    230

    Just to add on to what @joepasquariello posted -...

    Just to add on to what @joepasquariello posted - which is all good info. If you take a look at the QuadEncoder.ino sketch you will see that what he explained is used with a library call:

    ...
  12. Replies
    65
    Views
    14,129

    Lets take this one at a time because you are...

    Lets take this one at a time because you are asking 2 questions index counter and position counter. The use of the position counter and zeroing is clearing shown how to do in the simple.ino example....
  13. Replies
    97
    Views
    2,142

    Seems like we all forgot :) Will do the PR but...

    Seems like we all forgot :) Will do the PR but want to do a bit more debugging to see if we can figure out whats going on with FLAC but think that might be beyond me. Even with Cache turned off...
  14. Replies
    97
    Views
    2,142

    @Frank B - @KurtE - @wwatson Going back through...

    @Frank B - @KurtE - @wwatson
    Going back through the T4 beta thread from long ago actually found where I tested the codec library the T4 beta board when I think it was still the 1052 chip not 100%...
  15. Replies
    97
    Views
    2,142

    @KurtE - @wwatson I just forked @wwatson...

    @KurtE - @wwatson
    I just forked @wwatson repository and added my changes along with an extras folder that contain a zip file for the changed play_sd_wav and play_sd_raw that go into the audio...
  16. Replies
    97
    Views
    2,142

    Ok I made one change to calloc that seemed to...

    Ok I made one change to calloc that seemed to resolve playing MP3's for me without disabling cache. However when I first played a series of wav files and the next file was a AAC file it wouldn't...
  17. Replies
    97
    Views
    2,142

    @wwatson - @KurtE If interested here is the...

    @wwatson - @KurtE
    If interested here is the latest version the MTP_test_audio sketch.
  18. Thread: 24 Keys Matrix

    by mjs513
    Replies
    8
    Views
    353

    You may want to check this post out:...

    You may want to check this post out:
    https://forum.pjrc.com/threads/62087-Simple-Keyboard-matrix-with-Teensy-4-1?highlight=key+matrix
    sounds like a similar problem. Solution may help.
  19. You might also want to check out the following...

    You might also want to check out the following posts:
    https://forum.pjrc.com/threads/31878-Wii-nunchuk-Classic-controller?highlight=nunchuck
    ...
  20. Replies
    97
    Views
    2,142

    Had same thought but didn't seem to help with...

    Had same thought but didn't seem to help with large file transfers.
  21. Replies
    97
    Views
    2,142

    @wwatson - @Frank B Tried turning off cache to...

    @wwatson - @Frank B
    Tried turning off cache to see if it would help playing FLA files and to resolve another issue I was having, i.e., after playing a bunch of wav files (which worked) and then...
  22. Replies
    97
    Views
    2,142

    Did that happen even with the fix to calloc that...

    Did that happen even with the fix to calloc that I showed -calloc(size, (uint8_t) 1);
  23. Replies
    97
    Views
    2,142

    Don't worry about this stuff - take care of...

    Don't worry about this stuff - take care of business and yourself then worry about this.
  24. Replies
    97
    Views
    2,142

    Thanks - not really using FLA music anyways. ...

    Thanks - not really using FLA music anyways. Did note that OPU files do work just for reference.
  25. Replies
    97
    Views
    2,142

    How often is allocBuffer called? In post #39 I...

    How often is allocBuffer called? In post #39 I showed a solution to the issue with calloc. The compiler doesn't like calloc(size, 1) but it likes calloc(size, sizeof(uint8_t)) and it also works...
  26. Morning @defragster Been using the...

    Morning @defragster

    Been using the MTP_Test_integrity sketch pretty much for all my testing but I am not seeing any compile errors using PSRAM:

    Memory Usage on Teensy 4.1:
    FLASH:...
  27. Replies
    97
    Views
    2,142

    If I trace it through allocateBuffer is defined...

    If I trace it through allocateBuffer is defined in codecs.h as:

    uint8_t *allocBuffer(size_t size) { rdbufsize = size; bufptr = (uint8_t *) calloc(size,1); return bufptr;}
    malloc seems to work...
  28. Replies
    97
    Views
    2,142

    Think the real issue is why isn't malloc/calloc...

    Think the real issue is why isn't malloc/calloc working with MSC to begin with - maybe @KurtE has an idea.
  29. Replies
    97
    Views
    2,142

    @Frank B = @wwatson Made a change to...

    @Frank B = @wwatson

    Made a change to OpusPlayFile sketch and that is working on the T4.1 - used Frank's instructions in the referenced thread. Going to add it to MTP_test_audio sketch - probably...
  30. Replies
    97
    Views
    2,142

    @wwatson - @Frank B Tried the FLAC test files...

    @wwatson - @Frank B
    Tried the FLAC test files with the smaller blocksizes so still no dice. So for the heck of it I tried the example FLAC sketch in the library using SIDO and the T1_128.FLA on the...
  31. Replies
    97
    Views
    2,142

    Yes - thanks Frank. Learn something new every...

    Yes - thanks Frank. Learn something new every day. The FLA I was using to test has a blocksize of 1024 going to try the smaller ones just to be sure it works. And you are right just on my cheap-o...
  32. Replies
    97
    Views
    2,142

    Glad you are enjoying it. Should be playing 2...

    Glad you are enjoying it. Should be playing 2 channels unless I didn;t set the audio up right - only use 1 speaker on the audio jack. So can't really tell :)

    EDIT: UPDATED
    think for wav files I...
  33. Replies
    97
    Views
    2,142

    Ok got carried away. I edited the rest of the...

    Ok got carried away. I edited the rest of the codec library so you can play aac and flac files as well as editing raw in the audio library. Unfortunately not sure why FLAC files are not playing -...
  34. Replies
    97
    Views
    2,142

    Definitely especially when its something you can...

    Definitely especially when its something you can get working.
  35. Replies
    97
    Views
    2,142

    @wwatson and all interested parties. You got...

    @wwatson and all interested parties.

    You got me inspired this morning so I did a modification to the MTP_test sketch so instead of logging data it will play mp3 files on the device or a single...
  36. Replies
    97
    Views
    2,142

    Just downloaded your updates and gave it a try...

    Just downloaded your updates and gave it a try and looks like you got it solved. Played on first try. Now to have some fun :)
  37. A little confused. In your Step 2 it says...

    A little confused.

    In your Step 2 it says that the T4 you are using already has a key that was previously written:


    So when you go and run the verify sketch with a new key its going to fail...
  38. Replies
    97
    Views
    2,142

    yeah it was but still didn't work :)

    yeah it was but still didn't work :)
  39. Replies
    97
    Views
    2,142

    Going to see if I can modify the sketch to use it...

    Going to see if I can modify the sketch to use it in conjunction with MTP and see what happens at some point today. :)
  40. Replies
    97
    Views
    2,142

    @wwatson Downloaded your lib this morning to...

    @wwatson
    Downloaded your lib this morning to give it a try and I am not seeing any errors:

    Playing file: SDTEST1.mp3
    play() error = 0
    but the problem is nothing is playing. This is using a...
  41. Out of curiosity wanted to see what the teensy >...

    Out of curiosity wanted to see what the teensy > PC transfer looked like and seems to be the exact opposite of the PC > Teensy transfer:
    26693


    EDIT: Sorry @KurtE missed your edit on the post -...
  42. Decided to take break from this for a bit but to...

    Decided to take break from this for a bit but to answer your question yes seems to be working well for teensy to pc transfers.
  43. In addition to what @KurtE is seeing with missing...

    In addition to what @KurtE is seeing with missing packets I am experiencing timeouts of receipt of data which when using the 512MB flash chip from USB. In this case I get that 1 block out transfer:...
  44. @Paul - @KurtE and all I did a similar capture...

    @Paul - @KurtE and all
    I did a similar capture for the T3.6 using a 128GB MSC drive and the results were similar to that of the T4.1 in that there is a small packet (91 bytes) then a small bulk out...
  45. Replies
    97
    Views
    2,142

    Thank you - definitely will try it later today.

    Thank you - definitely will try it later today.
  46. Replies
    97
    Views
    2,142

    @wwatson - you should post your changes for...

    @wwatson - you should post your changes for LittleFS and/or issue a PR when you get done should be fun to play with. I have used the Library in the past and it works great.
  47. Replies
    65
    Views
    14,129

    Based on what you said I think you are...

    Based on what you said I think you are mis-reading something. If you configure the encoder to an index pin, it will reset the position counter when the index pin triggers the interrupt. The manual:...
  48. Replies
    65
    Views
    14,129

    Think if you look at the libraries ReadMe you...

    Think if you look at the libraries ReadMe you might find some of your answers on what the library contains. For instance you can specify whether you what to use an Index or trigger Pin as well as...
  49. Replies
    65
    Views
    14,129

    According to the spec its a 32-bit counter -...

    According to the spec its a 32-bit counter - unsigned int - so probably somewhere around 4,294,967,295 as a guess, I thing a uint32 is 232 - 1
  50. Replies
    65
    Views
    14,129

    Will give it a try I can't remember if it worked...

    Will give it a try I can't remember if it worked in both directions - sorry - too many projects and distractions

    EDIT: Just checked and its working as it should be from what I can see. I am...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4