Browse Source

fix boot.py

Tobias Müller 10 months ago
parent
commit
69d2f671e7
1 changed files with 5 additions and 2 deletions
  1. 5 2
      boot.py

+ 5 - 2
boot.py

@@ -8,9 +8,12 @@ The "boot.py" will be started before "main.py" and is used to setup the Pico.
 
 ##############################                 Modules               ##############################
 
-from machine import freq
+import gc
 from sys import path
+from machine import freq
 
 ##############################                 Code                   ##############################
 
-path.append("/Libs")    # add path for libraries
+freq(125000000)         # set clock speed of pico
+gc.enable()             # enable automatic garbage collector
+path.append("/libs")    # add path for libraries