Erel wrapped one of those two into a B4J lib (jPi4j if I recall right).
check the oled (ssd1306?) or my POE hat example where you can see how to send data with it.
I see pi4j2 but I don't know what the difference is. the old protocol should be still the same I guess.