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
|
2018-06-11 15:33:52 +01:00
|
|
|
init_sample.PrintHWInfo(hw)
|
2018-05-31 15:04:58 +01:00
|
|
|
|
|
|
|
# Main app
|
2018-06-12 18:00:00 +01:00
|
|
|
import uJIRA
|
2018-06-13 17:58:20 +01:00
|
|
|
from machine import Pin, TouchPad
|
2018-06-12 18:00:00 +01:00
|
|
|
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
|
2018-06-12 18:00:00 +01:00
|
|
|
'username': '',
|
|
|
|
'password': '',
|
2018-06-13 17:58:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
jcloud.login(auth)
|