(analog, enable)
| 505 | port.outBank.write(value << port.shift); |
| 506 | } |
| 507 | doReportAnalog(analog, enable) { |
| 508 | if (enable) { |
| 509 | if (!this.analogReport) |
| 510 | this.analogReport = []; |
| 511 | if (!this.analogReport[analog]) |
| 512 | this.analogReport[analog] = new Analog({pin: analog}); //@@ map channel to pin! |
| 513 | } |
| 514 | else if (this.analogReport && this.analogReport[analog]) { |
| 515 | this.analogReport[analog].close(); |
| 516 | delete this.analogReport[analog]; |
| 517 | if (!this.analogReport.find(item => undefined !== item)) |
| 518 | delete this.analogReport; |
| 519 | } |
| 520 | this.rebuildPoll(); |
| 521 | } |
| 522 | doReportDigital(port, enable) { |
| 523 | port = this.ports[port]; |
| 524 | if (enable) |
no test coverage detected