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 firmata = require('firmata'); | |
var repl = require('repl'); | |
var board = new firmata.Board('/dev/ttyAMA0',function(err){ | |
//arduino is ready to communicate | |
if (err) { | |
console.log("err:" + err); | |
return; | |
} | |
console.log("Firmata Firing LEDs"); |
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
import { customElement, LitElement } from 'lit-element'; | |
type UnpackCustomEvent<T> = T extends CustomEvent<infer U> ? U : never; | |
// Define custom event types and details here | |
interface CustomEventMap { | |
/** | |
* Dispatched when an error occurs. | |
*/ | |
'my-error': CustomEvent<{ error: Error }>; |
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
const pkgcloud = require('pkgcloud'); | |
const streamifier = require('streamifier'); | |
module.exports = { | |
init(providerOptions) { | |
const client = pkgcloud.storage.createClient(providerOptions); | |
const options = { container: providerOptions.defaultContainerName } | |
const remoteURL = () => |