21 lines
503 B
Python
21 lines
503 B
Python
import uPyConfig
|
|
|
|
hw = uPyConfig.esp32(variant='wemos-lolin32')
|
|
#print family, variant and IP address (using oled, if available on-board)
|
|
import webrepl
|
|
webrepl.start()
|
|
import init_sample
|
|
init_sample.PrintHWInfo(hw)
|
|
|
|
# Main app
|
|
import uJIRA
|
|
from machine import Pin, TouchPad
|
|
jcloud = uJIRA.client('tradeprint.atlassian.net')
|
|
auth = {
|
|
'method': 'basic-auth', #Only basic-auth is supported for now, oauth is a headache
|
|
'username': '',
|
|
'password': '',
|
|
}
|
|
|
|
jcloud.login(auth)
|