Closed Pillar1989 closed 7 years ago
Hi @Pillar1989 , I think you should connect your pmod grove OLED to G3 of the PYNQ grove adapter, and then connect the adapter to the PMODB connector (in order to use the Pmod IIC module).
From the picture you have, it seems that you are using the Arduino IIC connector. If you want to use the Arduino shield, as shown in the picture, you should do (with proper importing, of course):
oled = Grove_OLED(ARDUINO, ARDUINO_GROVE_IIC)
Thank you, It's works. That's the full code.
from pynq import PL
from pynq.iop import Grove_OLED
from pynq.iop import PMODB
from pynq.iop import PMOD_GROVE_G3
from pynq.iop import ARDUINO
from pynq.iop import ARDUINO_GROVE_I2C
# Flush IOP
PL.reset()
oled = Grove_OLED(ARDUINO,ARDUINO_GROVE_I2C)
oled.clear()
oled.write('Hello from Microblaze.')
del oled
I got a PYNQ board.
I want test the grove oled example. But I meet a issue ? Please help me. That's my code.
Output