Datasheet
15
5. With Raspberry Pi
1. You should have got a raspberry pi and a grovepi or grovepi+.
2. You should have completed configuring the development environment, otherwise follow here.
3. Connection. Plug the sensor to grovepi socket i2c-x(1~3) by using a grove cable.
4. Navigate to the demos' directory:
cd yourpath/GrovePi/Software/Python/grove_oled
To see the code
nano grove_i2c_oled_96x96_hello_world.py # "Ctrl+x" to exit #
import grove_oled
import time
grove_oled.oled_init()
grove_oled.oled_clearDisplay()
grove_oled.oled_setNormalDisplay()
grove_oled.oled_setVerticalMode()
time.sleep(.1)
for i in range(0,12):
grove_oled.oled_setTextXY(i,0)
grove_oled.oled_putString("Hello World")
5. Run the demo.
sudo python grove_i2c_oled_96x96_hello_world.py