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

Search:

Type: Posts; User: RichardG

Search: Search took 0.00 seconds.

  1. Replies
    24
    Views
    805

    I've tweaked the library and uploaded a new...

    I've tweaked the library and uploaded a new version. The address scanner should now work without having to add the "Wire.write(0xFF);" line.

    Thanks for reporting the issue.

    cheers,
    Richard
  2. Replies
    24
    Views
    805

    I've figured out why the scanner fails. The...

    I've figured out why the scanner fails. The problem is that it relies on Wire.endTransmission() talking to the slave even when it doesn't have any data to send. My implementation doesn't support...
  3. Replies
    24
    Views
    805

    I can't think of any way that I2C would transfer...

    I can't think of any way that I2C would transfer a byte but not a char as they're the same thing IIRC.

    The only thing I can think that might affect it is padding. The Teensy is a 32 bit CPU so...
  4. Replies
    24
    Views
    805

    Hi Allister, I've written the Wire...

    Hi Allister,

    I've written the Wire implementation to conform to the Arduino documentation. This means that if you call to begin(10) then you start I2C in slave mode. As you've found out you have...
  5. Replies
    24
    Views
    805

    I've fixed it and uploaded the new version. As...

    I've fixed it and uploaded the new version. As you suspected, my mistake was to define Wire, Wire1 and Wire2 in the header file instead of defining them in a .cpp file and referring to them as...
  6. Replies
    24
    Views
    805

    I've reproduced the problem with a bare bones...

    I've reproduced the problem with a bare bones example. It's a bug in i2c_driver_wire.h. I'll fix it and upload a new version today.
  7. Replies
    24
    Views
    805

    If you haven't found it already this site...

    If you haven't found it already this site provides a good explanation of I2C and how it works. There's bit about electrical problems in it.
    https://www.i2c-bus.org/
  8. Replies
    24
    Views
    805

    Hi Allister, I'm glad to hear that you're...

    Hi Allister,

    I'm glad to hear that you're trying Teensy4 I2C. I hope it works out for you.

    I think you can use a 'using' command to tell the compiler that TwoWire and I2CDriverWire are the same...
  9. Replies
    24
    Views
    805

    Hi @mjs513. The library already includes a...

    Hi @mjs513.

    The library already includes a wrapper which implements the wire API. See https://github.com/Richard-Gemmell/teensy4_i2c/blob/master/src/i2c_driver_wire.h. I've put some of the...
  10. Replies
    24
    Views
    805

    I've created an I2C library which implements...

    I've created an I2C library which implements slave mode. You can find it here: https://github.com/Richard-Gemmell/teensy4_i2c.

    cheers,
    Richard
  11. Replies
    15
    Views
    842

    Errr.... Apparently I completely failed to read...

    Errr.... Apparently I completely failed to read the question properly. Sorry about that.

    I'm not doing anything with SPI but I might go and brush up on my reading skills. :)

    cheers,
    Richard
  12. Replies
    15
    Views
    842

    Hi Glen, I'm in the same position. You're...

    Hi Glen,

    I'm in the same position. You're correct that the NXP has excellent hardware support for running as an I2C slave. The bad news is that the teensyduino implementation for Wire only...
  13. Replies
    24
    Views
    805

    Thanks manitou. I didn't know about the SDK. I'll...

    Thanks manitou. I didn't know about the SDK. I'll check it out.
  14. Replies
    24
    Views
    805

    To answer my own question... I2C Slave mode is...

    To answer my own question...

    I2C Slave mode is definitely not supported by the current version of Wire. The Teensy 4 isn't supported by the i2c_t3 library either.

    I've started to write a new...
  15. Replies
    24
    Views
    805

    I2C Slave on Teensy 4

    Hi. I've just started using a Teensy for the first time. I'm trying to get a Raspberry Pi to talk to a Teensy 4 over I2C. I've configured the Teensy to listen in slave mode but it doesn't seem to be...
Results 1 to 15 of 15