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

Thread: OctoWS2812 library and SPI

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    2

    OctoWS2812 library and SPI

    First I would like to thank Paul for an amazing work on the Teensy product line! These things are amazing!
    And this forum is a true gift!

    My question now is if it is possible to use the regular SPI library at the same time as the OctoWS library?
    It is only the Video Sync pin that is the common pin for those, and I will not be using that feature at all.

    I can't really find where in the library code that pin is used... *blush*

  2. #2
    Senior Member
    Join Date
    Jun 2013
    Location
    Torrance CA
    Posts
    415
    Pin 12 is only used by the VideoDisplay example, to sync multiple Teensys when you have a very large display. You're right, it's not used by the base library.

    If you're just using the OctoWS2811 library with your own code you can safely use SPI. I'm doing this now to pull fonts & bitmaps off a Flash SPI chip that are then displayed on an OctoWS2811 matrix.

    Good luck!

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    2
    Ah, OK!
    I read the VideoDisplay Example now and saw it! *Facepalm*

    Many thanks for the answer (a very quick one as well!).

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,985
    In designing OctoWS2811, there were 2 groups of 8 pins that could have been used. I picked the set that left the SPI port open, in hopes of someday making a SD card "player" from pre-converted uncompressed raw data files. Whether that will ever be implemented is a good question... but it was and still is something I want to do eventually.

Posting Permissions

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