This Grid-Eye code was ported over from Arduino to the Electric Imp. Original Arduino code can be found here:
https://github.com/logxen/GridEYE-Breakout
Thanks to this and Hugo from Electric Imp Forums, I was able to port this over to the Electric Imp.
Datasheet: https://eewiki.net/download/attachments/13599167/Grid-EYE%20SPECIFICATIONS%28Reference%29.pdf