UNPKG
@dtex/mock-io
Version:
latest (0.0.7)
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
Mock provider for ECMA-419 IO testing
github.com/dtex/mock-io
dtex/mock-io
@dtex/mock-io
/
modules
/
analog.js
16 lines
(12 loc)
•
206 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;