示例#1
0
def pi_display():
    gif_data = display.grab_gif_data()
    gif_url = gif_data['gif']
    delay = gif_data['delay']

    return render_template('/old-site/pi_display/pi_display.html',
                           gif=gif_url,
                           delay=delay)
示例#2
0
def pi_display_json():
    return jsonify(display.grab_gif_data())