forked from samsonmking/epaper.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Gray samsonmking#1 not displaying correct
* Port color mapping example from waveshare python examples * Add simple 4 gray example * Restore prettier in package.json
- Loading branch information
1 parent
173b7e4
commit e9ad317
Showing
10 changed files
with
1,848 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const { init, devices } = require('epaperjs'); | ||
|
||
init(devices.waveshare4in2HorizontalGray); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Example 4 Color Gray for ePaper.js | ||
|
||
## Colors | ||
|
||
| Color | HEX Code | | ||
| -------------- | --------- | | ||
| Gray 0 (White) | `#FFFFFF` | | ||
| Gray 1 | `#C0C0C0` | | ||
| Gray 2 | `#808080` | | ||
| Gray 3 (Black) | `#000000` | | ||
|
||
## Setup | ||
|
||
1. `npm install` | ||
2. `npm run start` |
Oops, something went wrong.