def image_test():
    pibo = Edu_Pibo()

    ret = pibo.draw_image(cfg.TESTDATA_PATH + "/clear.png")
    print(ret)
    pibo.show_display()
    time.sleep(2)
    pibo.clear_display()
def figure_test():
    pibo = Edu_Pibo()
    pibo.draw_figure((10, 10, 30, 30), "rectangle", True)
    pibo.draw_figure((70, 40, 90, 60), "circle", False)
    pibo.draw_figure((15, 15, 80, 50), "line")
    pibo.show_display()
    time.sleep(1.5)

    pibo.invert()
    pibo.show_display()
    time.sleep(1.5)
    pibo.clear_display()