Syncronizing a pair of eyes on Hallowing boards?

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
lemgandi
 
Posts: 2
Joined: Wed Feb 23, 2011 8:18 pm

Syncronizing a pair of eyes on Hallowing boards?

Post by lemgandi »

Alas, I saw your Monster Mask board just a little too late. I am the proud owner of a Hallowing M0 Express ( SKU 3900). I'd like to get another one and sync the eye demos between the two to make a pair of eyes, as in the Monster Mask board. I'm thinking I could use the I2C ports on the Hallowings to keep them in sync with just a 4-wire cable. From my reading of the doc, the Monster Mask and the Hallowing demo share a code base ( https://github.com/adafruit/Adafruit_Le ... er/M4_Eyes ). Looks like all I'd really have to do is hack some stuff into the top of the Loop part of the sketch to send/receive my sync data over I2C. Is that feasible?

User avatar
fishycircuits
 
Posts: 46
Joined: Wed Oct 28, 2020 5:04 pm

Re: Syncronizing a pair of eyes on Hallowing boards?

Post by fishycircuits »


User avatar
travid
 
Posts: 2
Joined: Sat Feb 16, 2013 6:52 pm

Re: Syncronizing a pair of eyes on Hallowing boards?

Post by travid »

Is there a way to do the synchronizing with the Hallowing M4 like the M4SKEYES? Or have the M0 synchronize human-looking eyes?

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Syncronizing a pair of eyes on Hallowing boards?

Post by adafruit_support_mike »

The M0 HalloWing can display any kind of eyes you want. The tutorial linked above shows how to change the artwork.

The synchronization trick in the tutorial should also work with the M4 HalloWing.

User avatar
travid
 
Posts: 2
Joined: Sat Feb 16, 2013 6:52 pm

Re: Syncronizing a pair of eyes on Hallowing boards?

Post by travid »

Thanks, Mike
I'm not great at Arduino, but I have it compiled and running on the Hallowing M0. Though when I change the code I either get a white screen or the eyes don't sync.
I think this is where I need to make my changes, but still not sure what to do...

Code: Select all

eyeInfo_t eyeInfo[] = {
#if defined(ADAFRUIT_HALLOWING)
  { 39, -1, 2 }, // SINGLE EYE display-select and wink pins, rotate 180
#elif defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(ARDUINO_NRF52840_CIRCUITPLAY)
  { A6, -1, 2 }, // SINGLE EYE display-select and wink pins, rotate 180
#elif defined(ADAFRUIT_TRINKET_M0)
  {  0, -1, 0 }, // SINGLE EYE display-select, no wink, no rotation
#else
  {  9, 0, 0 }, // LEFT EYE display-select and wink pins, no rotation
  { 10, 2, 0 }, // RIGHT EYE display-select and wink pins, no rotation
#endif

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”