This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module "utils/idgenerator" { | |
namespace internal { | |
/** | |
* Generate a random unique ID. This should be globally unique. | |
* 87 characters ^ 20 length > 128 bits (better than a UUID). | |
* @return {string} A globally unique ID string. | |
*/ | |
function genUid(): string; | |
} | |
/** |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module "utils/idgenerator" { | |
namespace internal { | |
/** | |
* Generate a random unique ID. This should be globally unique. | |
* 87 characters ^ 20 length > 128 bits (better than a UUID). | |
* @return {string} A globally unique ID string. | |
*/ | |
function genUid(): string; | |
} | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT | |
{ | |
"type": "custom_if", | |
"message0": "if %1 %2", | |
"args0": [ | |
{ | |
"type": "input_value", | |
"name": "NAME" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SerialPort = require("serialport"); | |
const Readline = SerialPort.parsers.Readline; | |
var spotify = require('spotify-node-applescript'); | |
var port = new SerialPort('/dev/tty.usbmodem1422', { | |
baudRate: 115200, | |
autoOpen: false | |
}) | |
const parser = new Readline(); | |
port.pipe(parser); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Min_X = 1; | |
let Max_X = 15; | |
let a = 0 | |
let b = 0 | |
let x = 5 | |
let lastA = pins.digitalReadPin(DigitalPin.P5); | |
basic.forever(() => { | |
a = pins.digitalReadPin(DigitalPin.P5); | |
b = pins.digitalReadPin(DigitalPin.P11) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Min_X = 1; | |
let Max_X = 15; | |
let a = 0 | |
let b = 0 | |
let x = 5 | |
let lastA = pins.digitalReadPin(DigitalPin.P5); | |
basic.forever(() => { | |
a = pins.digitalReadPin(DigitalPin.P5); | |
b = pins.digitalReadPin(DigitalPin.P11) |