TFT N18
1.8" - 160x128 Color Display
- Overview
- Commands
- On-Module Code
1.8" - 160x128 Color TFT LCD (no touch) display, supporting Graphics.
Key features • 1.8" display | Resources 📄 Schematics PID: 0x010006 |
Modules ship without cables to reduce waste. Some specialty boards include a USB cable; for the rest, see Cables to add cables to your order.
| Function | Description |
|---|---|
Init(m,o) | Initialize display m mode (buffered = 0 , direct = 1). o orientation (landscape = 0, portrait = 1). Init(0, 0) automatically called on power-up. |
GetW() | Get display width: 64 in buffered, 128 in direct. |
GetH() | Get display height: 80 in buffered, 160 in direct. |
IsColor() | Returns 1. |
SetDACtrl(s,r,c,b) | Data access control s swapRowCol, r invertRow, c invertCol, b swapBGRSet data access control. |
SetWindow(x,y,w,h) | Sets draw window x display's x value, y display's y value., w display's width value, h display's height value. |
DVer() | This driver version. |
Samples​
Example code for using this module's commands in popular languages.
New here? See Get Started to connect a module and send your first command.
- Script
- Python
- MicroPython
- JavaScript
- .NET
- Arduino
- MicroBlocks
loading...
loading...
loading...
loading...
loading...
loading...
This sample project runs on a MicroBlocks-enabled device that is tethered to this module. Note that this tethered module needs to have the official DUELink firmware and its module driver. See MicroBlocks page to learn more.
Click the button below to open, edit, and run the project directly on MicroBlocks' website.
Peek under the hood
The script below is this module's driver — it teaches the hardware how to respond to the commands listed above. It ships pre-loaded from the factory; most users never need to open it.
loading...
Code that runs directly on this module's MCU. See On-Module Code for an overview.
- Script
- Arduino IDE
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the module's driver to be loaded first, see the Commands Tab.
loading...
See Arduino IDE page for more info.
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink TFT N18 | GDL-DSTFTN18-B | $14.95 |