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

Thread: Teensy 4.0 source code

  1. #1
    Junior Member
    Join Date
    Jan 2021
    Posts
    3

    Teensy 4.0 source code

    On my Windows 10 machine it appears Teensy 4.0 source code is in the directory:
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries
    Is this correct? If it is, why is there an "avr" in this path? I need to increase the I2C buffer size so that's why I'm looking for it. I'm assuming just changing the #define BUFFER_LENGTH in the <wire.h> file in the subdirectory <wire> of this path will do that.

    I'm also assuming this overrides the "normal" arduino source code in:
    C:\Program Files (x86)\Arduino\hardware\avr\libraries
    which also has a <wire.h> in a subdirectory <wire\src>. I can understand why there is an "avr" in that path.

    Thanks

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    14,426
    That is correct - Always using the UNZIP method for IDE 'install' my path is :
    T:\arduino_1.8.14\hardware\teensy\avr\

    Assuming :: Paul worked to get it in AVR path all those years back when ARM was not a standard - and he migrated from AVR Teensy 1 and 2.

    Paul/PJRC install of TeensyDuino makes it all work - it is just a path name - and the installed boards.txt and platform.txt creation is designed to make it all work out using the IDE.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,689
    You might also have to make the same change to TWI_BUFFER_LENGTH in hardware/teensy/avr/libraries/Wire/utility/twi.h

    Pete

Posting Permissions

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