has anyone ever used mega-brites


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    974


    Did you find this post helpful? Yes | No

    Default Re: has anyone ever used mega-brites

    Quote Originally Posted by TinkersALotV2 View Post
    I can't say that I completely get their arduino code snip in their sample ( for example, what the heck is going on in the while loops in the SB_SendPacket() function? ).
    The while loops in Sb_SendPacket wait for the SPI engine to complete the transmission. That is when the SPIF bit gets set in the SPSR register.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: has anyone ever used mega-brites

    Quote Originally Posted by Jerson View Post
    The while loops in Sb_SendPacket wait for the SPI engine to complete the transmission. That is when the SPIF bit gets set in the SPSR register.
    Okay. Thanks for that. I will refer to their sample again with that new information in mind -- particularly what kicks off the SPI -- as I recall maybe it is the assignment of their mixed bits into another "special variable"

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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