Skip to content

Commit

Permalink
Add clear function to vm, this allows to workaround parts for #3
Browse files Browse the repository at this point in the history
  • Loading branch information
martijndeb committed Jan 10, 2018
1 parent e7f23a3 commit 543cad5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/vmcontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class VMController
'WIDTH': matrixSize.width,
'HEIGHT': matrixSize.height,

'clear': this.driver.clear.bind( this.driver ),
'setBrightness': this.driver.setBrightness.bind( this.driver ),
'getBrightness': this.driver.getBrightness.bind( this.driver ),
'setPixel': this.driver.setPixel.bind( this.driver ),
Expand Down

0 comments on commit 543cad5

Please sign in to comment.