Sfoglia il codice sorgente

上传文件至 'backup/preset/app'

junhuanchen 1 anno fa
parent
commit
ccf564f398
1 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 14 0
      backup/preset/app/reset.py

+ 14 - 0
backup/preset/app/reset.py

@@ -0,0 +1,14 @@
+from maix import camera, display, image
+
+image.load_freetype("/root/preset/fonts/simhei.ttf")
+hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
+hello_img.draw_string(10, 115, 'Reset', scale=1.0, color=(255, 255, 255), thickness=1)
+display.show(hello_img)
+
+
+import git
+
+localrep = "/home"
+
+
+git.reset(localrep)