Refactor code

This commit is contained in:
Mike Cifelli 2023-02-07 08:53:04 -05:00
parent 8cdffa444f
commit e3fc7a7666
12 changed files with 11 additions and 11 deletions

View File

@ -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
View File

@ -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):