Skip to content

Commit

Permalink
Add BLE and BT to vm
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Apr 27, 2024
1 parent 3dbd30f commit 5cc3862
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/virtual-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const formatMessage = require('format-message');
const Variable = require('./engine/variable');
const newBlockIds = require('./util/new-block-ids');

const BLE = require('./engine/ble');
const BT = require('./io/bt');

const {loadCostume} = require('./import/load-costume.js');
const {loadSound} = require('./import/load-sound.js');
const {serializeSounds, serializeCostumes} = require('./serialization/serialize-assets');
Expand Down Expand Up @@ -71,6 +74,11 @@ class VirtualMachine extends EventEmitter {
log.error(`Failed to register runtime service: ${JSON.stringify(e)}`);
});

this.io = {
ble,
bt
}

/**
* The "currently editing"/selected target ID for the VM.
* Block events from any Blockly workspace are routed to this target.
Expand Down

0 comments on commit 5cc3862

Please sign in to comment.