1
0
Fork 0
mirror of https://github.com/sexybiggetje/pixdisp.git synced 2024-11-14 17:51:02 +01:00
pixdisp/drivers/dummy.js

19 lines
252 B
JavaScript
Raw Normal View History

"use strict";
let { Driver } = require( './driver' );
class Dummy extends Driver {
constructor() {
super();
this.silence = false;
}
write( buffer ) {
if ( this.silence !== true ) {
console.log( buffer );
}
}
}
exports.Dummy = Dummy;