Example #1
0
import os
import time
import json
from pprint import pprint
import sys
lcd = LCD.Create()

lcd.Clear()
###

#gsm.sendSMS("Starting..")
#time.sleep(2)
dht_sensors = [11, 19, 13, 12, 27, 26, 4]
#dht_sensors = [4,26,27,22,10,19,11]
print("Constructing DHT Sensors")
dht = DHT.DHT_SENSOR(dht_sensors)

cell1_dt = 23
cell1_sck = 24

cell2_dt = 8
cell2_sck = 25

cell3_dt = 16
cell3_sck = 20

cell1Swap = 'cell1.swp'
cell2Swap = 'cell2.swp'
cell3Swap = 'cell3.swp'
print('Constructing Cell1')
cell1 = loadCell.Create(cell1_dt, cell1_sck, swapFile=cell1Swap)