Commits

tuck...@gmail.com  committed 8cfb0a7 Draft

add garbage collect

  • Participants
  • Parent commits 84c8fa1

Comments (0)

Files changed (1)

File src/platform/stm32f4/lcd.py

 
         # set the entry mode
         self.command(LCD_ENTRYMODESET | self._displaymode)
+
+        # clean up
+        sys.gc()
     
     def set_output(self, pin):
         """
         # this command takes a long time!
         sys.wait(2)  
 
+        # clean up
+        sys.gc()
+
     def home(self):
         """
         """