UNPKG

@dtex/mock-io

Version:

Mock provider for ECMA-419 IO testing

16 lines (12 loc) 206 B
class Analog { constructor(opts) { this.pin = opts.pin; this.target = opts.target; this.resolution = 10; this.value = 0x00; } read() { return this.value; } } export default Analog;