New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

5x5_rgb_pimoroni

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

5x5_rgb_pimoroni

A module to interact with the 5x5 RGB matrix from Pimoroni

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

5x5 Matrix led from Pimoroni

Installation

npm install 5x5_rgb_pimoroni

Description

A module to control the 5x5 matrix led from Pimoroni.

Usage

const {RGB_pimoroni} = require('5x5_rgb_pimoroni')

const rgb = new RGB_pimoroni(ADDRESS_OF_THE_I2C_BUS=0x74, BUS_NUMBER=1)

rgb.set_pixel(x=0, y=0, r=255, g=0, b=0)

Methods

On or Off the LED matrix

rgb.Stop(false) // On
rgb.Stop(true) // Off

Set the color of a pixel

rgb.setColorLed(x, y, r, g, b, brightness=1)

Set the color of ALL pixels

rgb.setColor(r, g, b, brightness=1)
rgb.blink(speed=100)
rgb.stopAnimations()

Create a crossMark

rgb.crossMark(r,g, b, brightness=1, speed=100)

Create a validMark

rgb.validMark(r,g, b, brightness=1, speed=100)

Make By Alexis06030631

Instagram

Keywords

FAQs

Package last updated on 31 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc