Add events to the html and respective libraries, web, mobile and core

This commit is contained in:
mmcw-dev 2017-12-20 23:49:51 -05:00
parent e880e44a5c
commit 2545df2c38
4 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,7 @@
</select>
</div>
<div>
<button id="seq">START SEQUENCE</button>
<button id="seq" onclick="sequence();">START SEQUENCE</button>
</div>
<div>
<button id="frame" onclick="frame();">1 FRAME</button>

View File

@ -21,6 +21,7 @@ window.setDir = null;
window.setExposure = null;
window.setDelay = null;
window.setCounter = null;
window.sequence = null;
//ms
var shutter = function (exposure) {

View File

@ -112,6 +112,7 @@ mobile.init = function () {
window.setExposure = mobile.setExposure;
window.setDelay = mobile.setDelay;
window.setCounter = mobile.setCounter;
window.sequence = mobile.sequence;
//show ble-specific fields in settings
for (let i of bleInputs) {

View File

@ -165,5 +165,6 @@ web.init = function () {
window.setDelay = web.setDelay;
window.setExposure = web.setExposure;
window.setCounter = web.setCounter;
window.sequence = web.sequence;
console.log('started web')
};