Skip to content

Commit

Permalink
Bug samsonmking#16: Fix reference to image converter for 7.5" display
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonmking committed Dec 30, 2020
1 parent 8fb965a commit 6566b45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const waveshare7in5v2Horizontal = {
width: 800,
driver: waveshare7in5v2Driver,
displayPNG: async function (imgContents) {
const buffer = await convertPNG(imgContents);
const buffer = await image.convertPNGto1BitBW(imgContents);
this.driver.display(buffer);
},
init: function () {
Expand All @@ -72,7 +72,7 @@ const waveshare7in2v2Vertical = {
width: 480,
driver: waveshare7in5v2Driver,
displayPNG: async function (imgContents) {
const buffer = await convertPNG(imgContents);
const buffer = await image.convertPNGto1BitBWRotated(imgContents);
this.driver.display(buffer);
},
init: function () {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "epaperjs",
"version": "1.3.2",
"version": "1.3.3",
"description": "Simple e-Paper display on a Raspberry Pi using Javascript and HTML",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6566b45

Please sign in to comment.