uPyLibs/main.py

21 lines
503 B
Python
Raw Normal View History

2018-05-31 15:04:58 +01:00
import uPyConfig
2018-06-11 15:32:17 +01:00
hw = uPyConfig.esp32(variant='wemos-lolin32')
2018-05-31 15:04:58 +01:00
#print family, variant and IP address (using oled, if available on-board)
2018-06-19 19:58:19 +01:00
import webrepl
webrepl.start()
2018-05-31 23:54:21 +01:00
import init_sample
init_sample.PrintHWInfo(hw)
2018-05-31 15:04:58 +01:00
# Main app
import uJIRA
2018-06-13 17:58:20 +01:00
from machine import Pin, TouchPad
jcloud = uJIRA.client('tradeprint.atlassian.net')
auth = {
2018-06-13 17:58:20 +01:00
'method': 'basic-auth', #Only basic-auth is supported for now, oauth is a headache
'username': '',
'password': '',
2018-06-13 17:58:20 +01:00
}
jcloud.login(auth)