Refactor code
This commit is contained in:
parent
8cdffa444f
commit
e3fc7a7666
|
@ -45,11 +45,11 @@ function copy {
|
|||
}
|
||||
|
||||
|
||||
create_directory networking
|
||||
create_directory net
|
||||
create_directory sensors
|
||||
create_directory www
|
||||
|
||||
copy "main.py" :
|
||||
copy "networking/*.py" :networking/
|
||||
copy "net/*.py" :net/
|
||||
copy "sensors/*.py" :sensors/
|
||||
copy "www/*" :www/
|
||||
|
|
12
main.py
12
main.py
|
@ -2,12 +2,12 @@ import json
|
|||
import time
|
||||
|
||||
from machine import Pin
|
||||
from networking import AdafruitIO
|
||||
from networking import logging
|
||||
from networking import ntp
|
||||
from networking import Server
|
||||
from networking import templates
|
||||
from networking import util
|
||||
from net import AdafruitIO
|
||||
from net import logging
|
||||
from net import ntp
|
||||
from net import Server
|
||||
from net import templates
|
||||
from net import util
|
||||
|
||||
|
||||
class LedServer(Server):
|
||||
|
|
Loading…
Reference in New Issue