npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rpi-ili9341-lcd

v2.0.1

Published

A Raspberry Pi display driver for LCDs running the ILI9341 chip

Downloads

7

Readme

npm

rpi-ili9341-lcd

A Raspberry Pi display driver for LCDs running the ILI9341 chip, like the Waveshare 2.4inch LCD Module.

Installation

⚠️ This package was designed to be used with the rpio library for Node.js.
Please make sure that you have rpio installed and set-up according to its system requirements.

  npm install rpio
  npm install rpi-ili9341-lcd

Getting started

You need to pass the bitmap of the image you want to display to the showImage() method.
Here's a simple example that fills the entire display with a single color. See the Examples section for more advanced usages.

const rpio = require("rpio");
const { ILI9341_LCD } = require('rpi-ili9341-lcd');

const color = [0xff, 0x00, 0xff];  //magenta #FF00FF

rpio.init({ mapping: "gpio", gpiomem: false });
const disp = new ILI9341_LCD(rpio, { width: 240, height: 320 });

disp.Init();
disp.clear();
disp.showImage({
  width: 240,
  height: 320,
  data: Buffer.alloc(240 * 320 * 3, Buffer.from(color))
});
disp.moduleExit();

Examples

FAQ

What LCD models does this library support?

It was only tested on the Waveshare 2.4inch LCD Module because it's the only ILI9341-based display that I own.
Please open an issue if you need support for a different model.

Which GPIO pin should each pin on the LCD be connected to?

See the "Raspberry Pi Guides" section here to learn how to connect your LCD to the Raspberry Pi, but as listed in the FAQ section there, do not connect the BL pin.

How was this code written?

This code was ported from the Python version here

I'm getting a Cannot find module 'rpio' error when trying to run the example code. What should I do?

This library depends on rpio as a peerDependency. Make sure that you have it installed and set-up according to its system requirements.

Running Tests

To run tests, run the following command

  npm run test

License

MIT