<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Displaying text on a PmodOLED
This demonstration shows how to display text on a PmodOLED using the Pynq-Z1 board.
The Digilent Pmod OLED is required. In this example it should be connected to PMODA.
Step1:  You should now see the text output on the OLED, so let's try another message
Step2:  Finally, capture some text from IPython shell calls and print out to OLED
<ASSISTANT_TASK:>
Python Code:
from pynq import Overlay
from pynq.iop import Pmod_OLED
from pynq.iop import PMODA
ol = Overlay("base.bit")
ol.download()
pmod_oled = Pmod_OLED(PMODA)
pmod_oled.clear()
pmod_oled.write('Welcome to the\nPynq-Z1 board!')
Explanation: Displaying text on a PmodOLED
This demonstration shows how to display text on a PmodOLED using the Pynq-Z1 board.
The Digilent Pmod OLED is required. In this example it should be connected to PMODA.
End of explanation
pmod_oled.clear()
pmod_oled.write('Python and Zynq\nproductivity &  performance')
Explanation: You should now see the text output on the OLED, so let's try another message
End of explanation
def get_ip_address():
    ipaddr_slist = !hostname -I
    ipaddr = (ipaddr_slist.s).split(" ")[0]
    return str(ipaddr)
pmod_oled.clear()
pmod_oled.write(get_ip_address())
Explanation: Finally, capture some text from IPython shell calls and print out to OLED
End of explanation
<END_TASK>