1
0
Fork 0
mirror of https://github.com/sexybiggetje/pixdisp.git synced 2024-11-15 08:41:03 +01:00
pixdisp/drivers/dummy.js

19 lines
260 B
JavaScript
Raw Normal View History

2018-01-07 09:24:32 +01:00
'use strict';
let { Driver } = require( './driver' );
class Dummy extends Driver {
constructor() {
super();
this.silence = false;
}
write( buffer = false ) {
if ( this.silence !== true ) {
console.log( buffer );
}
}
}
exports.Dummy = Dummy;