From c3ded3e70b2c72cb3eb9244e5297b3e6d496e03c Mon Sep 17 00:00:00 2001 From: Stephanie Date: Sun, 14 May 2023 13:34:03 +0200 Subject: [PATCH] Fix typo in README examplle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 👋 Hey friends! I found a small typo when I was setting up this on my pi zero & copy/pasting the examples (since I needed to change the GPIO pin). Just wanted to fix it in case others do the same. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3c280f1..a61ec04 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ way for initialization using the top-level export function. #### Example: ```javascript -const ws2821x = require('rpi-ws281x-native'); +const ws281x = require('rpi-ws281x-native'); const options = { dma: 10, freq: 800000, @@ -95,7 +95,7 @@ Configures and initializes the drivers and returns an array of channel-interface #### Example: ```javascript -const ws2821x = require('rpi-ws281x-native'); +const ws281x = require('rpi-ws281x-native'); const channels = ws281x.init({ dma: 10, @@ -130,7 +130,7 @@ Send the current state of the channel color-buffers to the LEDs. #### Example: ```javascript -const ws2821x = require('rpi-ws281x-native'); +const ws281x = require('rpi-ws281x-native'); // initialize const [channel] = ws281x.init(options); @@ -269,4 +269,4 @@ blacklist snd (after updating the file you need to run `sudo update-initramfs -u` to get the changes into the boot-partition or something like that) -If anyone finds a better solution please get in touch! \ No newline at end of file +If anyone finds a better solution please get in touch!