-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb7781f
commit 0c14166
Showing
23 changed files
with
371 additions
and
31 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,62 @@ | ||
# Heltec E-ink Modules | ||
## Wiring:SAMD21G18A | ||
|
||
**✅ SAMD21G18A uses 3.3V logic. It can connect directly to display.** | ||
|
||
Display | SAMD21G18A | ||
--------|-------- | ||
VCC | 3.3V | ||
GND | GND | ||
D/C | D2 | ||
SDI | MOSI (COPI) | ||
CS | D4 | ||
CLK | SCK | ||
BUSY | D5 | ||
|
||
|
||
### Where are *MOSI* and *SCK*? | ||
*Good question.* The location depends on your board. | ||
|
||
These suggested locations are untested: I do not own either board. Please let me know if they do not work. | ||
|
||
Arduino Zero | Arduino Nano 33 IoT | ||
-------------|-------------------- | ||
![Diagram: suspected zero pin locations](zero_spi.png) | ![Diagram: suspected nano 33 IoT pin locations](nano33iot_spi.png) | ||
|
||
### (Optional) Changing MOSI and SCK pins | ||
|
||
All pin assignments can be changed, using an extended constructor: | ||
```cpp | ||
DISPLAY_CLASS(DC_PIN, CS_PIN, BUSY_PIN, SDI_PIN, CLK_PIN); | ||
``` | ||
Due to hardware limitations, only certain wiring pairs are valid for SDI and CLK: | ||
SDI pin | SCK pin | ||
--------|-------- | ||
D2 | D5 | ||
D4 | D3 | ||
D4 | D5 | ||
D5 | D3 | ||
D10 | D12 | ||
D11 | D12 | ||
D11 | D13 | ||
D12 | D13 | ||
A1 | A2 | ||
If your selection is invalid, your board's `LED_BUILTIN` will blink out an "SOS". | ||
### (Optional) Suggested additional wiring, for power saving | ||
```cpp | ||
void setup() { | ||
// GPIO 7, PNP transistor | ||
display.usePowerSwitching(7, PNP); | ||
//Later, when required: | ||
display.externalPowerOff(); | ||
display.externalPowerOn(); | ||
} | ||
``` | ||
|
||
![schematic of display connected to Arduino Zero, using PNP transistor as a switch](zero_power_switching.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name=heltec-eink-modules | ||
version=3.0.0 | ||
version=3.1.0 | ||
author=Todd Herbert | ||
maintainer=Todd Herbert | ||
sentence=Third party graphics library for Heltec E-Ink modules. | ||
paragraph=AdafruitGFX and Arduino Uno R3 support. | ||
category=Display | ||
url=https://github.com/todd-herbert/heltec-eink-modules | ||
architectures=avr, esp32, esp8266 | ||
architectures=avr, esp32, esp8266, samd |
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
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
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
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,30 @@ | ||
// Specific options for SAMD21G18A | ||
|
||
#ifndef __PLATFORM_FALLBACK_H__ | ||
#define __PLATFORM_FALLBACK_H__ | ||
// Check if not otherwise handled | ||
#ifdef __SAMD21G18A__ | ||
|
||
#include "pin_mux.h" | ||
|
||
// Don't use fallback settigs | ||
// Don't use fallback settigs | ||
#define PLATFORM_SUPPORTED true | ||
|
||
// SPI | ||
|
||
#define SPI_BEGIN() ( SPI.begin() ) | ||
#define CAN_SPECIFY_SPI_PINS true | ||
#define DEFAULT_SDI MOSI | ||
#define DEFAULT_CLK SCK | ||
#define LATE_INIT true | ||
|
||
// Paging | ||
#define DEFAULT_PAGE_HEIGHT panel_height | ||
#define MAX_PAGE_HEIGHT panel_height // Size, in bytes: MAX_PAGE_HEIGHT * (width / 8) | ||
#define PRESERVE_IMAGE true // Allow the profile to preserve image | ||
|
||
#endif | ||
|
||
#endif |
Oops, something went wrong.