kaku111 / pxt-tobbieII

Tobbie-II for micro:bit
MIT License
8 stars 3 forks source link

Move global variables to local whenever possible #1

Closed pelikhan closed 5 years ago

pelikhan commented 5 years ago

To reduce memory footprint, move global variables to locals whenever possible. https://github.com/kaku111/pxt-tobbieII/blob/923e9db9a90667ef6c20d22700cc1f2a7b8df672/main.ts#L4

kaku111 commented 5 years ago

I have tried to change some global variables to local variables. thanks!