Merge pull request #240 from sensebox/fix/alway-include-senseboxIO

add senseBoxIO to main procedure
This commit is contained in:
Mario Pesch 2023-05-08 14:26:01 +02:00 committed by GitHub
commit a969727a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ import * as Blockly from "blockly/core";
* @return {string} Completed code.
*/
Blockly.Arduino["arduino_functions"] = function (block) {
Blockly.Arduino.libraries_["library_senseBoxIO"] = "#include <senseBoxIO.h>";
// Edited version of Blockly.Generator.prototype.statementToCode
function statementToCodeNoTab(block, name) {
var targetBlock = block.getInputTargetBlock(name);