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

Thread: class stream support?

  1. #1
    Senior Member
    Join Date
    Nov 2012
    Posts
    412

    class stream support?

    @Paul

    Does Teensy 3.x support the class stream?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,588
    Yes, it does have the Stream class.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    412
    Any (serial) examples using the stream class I could examine?

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,588
    Except for readBytes(), all the functions are nearly identical to Arduino's. Examples from Arduino should all work fine.

    The readBytes() has optimization for some devices, especially USB serial. It should work the same as Arduino, but unlike Arduino, reading blocks of data is much faster. Those optimizations were inspired by OctoWS2811. Look at the VideoDisplay example.

Posting Permissions

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