Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Teensy Micromod I2C

  1. #1
    Senior Member
    Join Date
    Feb 2015
    Posts
    180

    Teensy Micromod I2C

    So I think if I am using the Teensy Microrod I am actually using WireIMXRT.h which gives me a #define BUFFER_LENGTH 136

    Is this correct?

    If so why can't I increase the packet sent > 30?

    Is 136 the actual maximum of the hardware or just for the library?

    Can this be increased? I think the hardware max is 255?

    Thanks

    Bruce

  2. #2
    If you have #include "Wire.h" in your code and your Arduino IDE is building for Teensy Micromod, then yes, you would be using WireIMXRT.h. Looks to me like 136 is just the size of the RX/TX buffers in the class. The hardware FIFOs in the LPI2C module are only 4 words, so I'm not sure where the 30 comes in. You'll have to show your code and say more about what you're doing.

  3. #3
    Senior Member
    Join Date
    Feb 2015
    Posts
    180
    Well it is not what I am doing but what https://github.com/blues/note-arduino is doing.

    They say you can increase the maximum message in the "begin" declaration. I even tried 64 which should work just fine if the Micromod Teensy should be no issue but nothing.

    So I am just checking if my understanding is correct.

    Thanks

    Bruce

  4. #4
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    10,328
    I see that the buffer size did change size about 2 months ago. Before that it was 30. Now if you are like me and you have a fork of the library installed in your <sketches>/library folder, you may want to verify if that version of the library has been updated.

    You might double check when you build. It will say something like it is using ... for the wire library and not yyy...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •