@Proto, some very basic pointers for porting Arduino libraries can be found here
But at the moment it’s still solely focused on the Particle Core and not the Photon, you’ll get some idea tho’.
The conditional compiling directive for the Photon would be
#if (PLATFORM_ID == 6) instead of
#if defined(SPARK) (for the Core it’s now
PLATFORM_ID == 0).
After having a look at the lib I’m convinced you can manage to port the lib with only the hints from the link above. There is no bare metal programming that would need some major rework of the original code.
But if you should still happen to have problems getting the hang of it, just ask, we’re there to help, when we see your effort.
Any error messages you get after porting would be good to post too.
One bit missing in the link above:
#define _BV(x) (1 << x)
Since you haven’t changed the pin assignment, how have you wired the display?
Although it’s discouraged to use the “number-only” pin referencing on Particle devices (rather use the labels printed on the board) it’ll still work when you wire up