All Projects → kaosat-dev → adafruit-i2c-pwm-driver

kaosat-dev / adafruit-i2c-pwm-driver

Licence: MIT license
Node.js implementation for the Adafruit 16-Channel 12-bit PWM/Servo Driver

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to adafruit-i2c-pwm-driver

tinyfont
Text library for TinyGo displays
Stars: ✭ 37 (+48%)
Mutual labels:  i2c, adafruit
Tinygo
Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
Stars: ✭ 9,068 (+36172%)
Mutual labels:  i2c, adafruit
ssd1306-esp-idf-i2c
Sample code for driving 128x64 OLED display (SSD1306 driver) via ESP-IDF's I2C master driver
Stars: ✭ 93 (+272%)
Mutual labels:  i2c
rtimulib ros
A small package to use the RTIMULib in ROS
Stars: ✭ 28 (+12%)
Mutual labels:  i2c
ESP8266-I2C-Driver
Fixed built-in I2C driver for Arduino ESP8266 core
Stars: ✭ 74 (+196%)
Mutual labels:  i2c
BME680
Arduino Library to access the Bosch BME680 - temperature, pressure, humidity and gas sensor
Stars: ✭ 30 (+20%)
Mutual labels:  i2c
camera.zero
Combining Camera Zero with an Arducam 12MP camera, a Raspberry Pi Zero WH, a PiMoRoNi trackball breakout, and an Adafruit 16-LED NeoPixel ring will result in a neat little screenless camera that can be controlled with your thumb.
Stars: ✭ 26 (+4%)
Mutual labels:  adafruit
Safe-Power-Monitor
Camble - SudoMod
Stars: ✭ 19 (-24%)
Mutual labels:  adafruit
PCF8574
Arduino library for PCF8574 - I2C IO expander
Stars: ✭ 60 (+140%)
Mutual labels:  i2c
esp-01-WiFi-Scanner-ESP-01-OLED-I2C-Display
Scanner WiFi avec écran OLED I2C (SSD1306) sur un ESP-01 (ESP8266)
Stars: ✭ 21 (-16%)
Mutual labels:  i2c
FPGA-I2C-Minion
A simple I2C minion in VHDL
Stars: ✭ 50 (+100%)
Mutual labels:  i2c
micropython-adafruit-mqtt-esp8266
Using MQTT to Publish/Subscribe to adafruit io. MicroPython/CircuitPython implementation on ESP8266/ESP32
Stars: ✭ 53 (+112%)
Mutual labels:  adafruit
SerialTransfer
Arduino library to transfer dynamic, packetized data fast and reliably via Serial, I2C, or SPI
Stars: ✭ 273 (+992%)
Mutual labels:  i2c
rpi
Microcontroller projects (RPi, Arduino, ATTiny85, ESP, Pico, STM8/32)
Stars: ✭ 76 (+204%)
Mutual labels:  i2c
Sweet-Sixteen
Sweet Sixteen eurorack module by Tesseract Modular
Stars: ✭ 28 (+12%)
Mutual labels:  i2c
arduino-mcp23017
Complete support of MCP23017
Stars: ✭ 44 (+76%)
Mutual labels:  i2c
boombeastic
A Raspberry Pi based smart connected speaker with support for airplay, spotify, mpd and local playback
Stars: ✭ 206 (+724%)
Mutual labels:  adafruit
bno055
ROS2 driver for Bosch BNO055 using UART or I2C
Stars: ✭ 25 (+0%)
Mutual labels:  i2c
gfx demo
GFX Demo for Arduino and the ESP-IDF
Stars: ✭ 63 (+152%)
Mutual labels:  i2c
digital-electronics-2
AVR course at Brno University of Technology
Stars: ✭ 12 (-52%)
Mutual labels:  i2c

Adafruit I2C PWM Driver

npm version

Node.js implementation for the Adafruit 16-Channel 12-bit PWM/Servo Driver http://www.adafruit.com/products/815

Installation

npm i adafruit-i2c-pwm-driver

Usage

const makePwmDriver = require('adafruit-i2c-pwm-driver')
const pwmDriver = makePwmDriver({address: 0x40, device: '/dev/i2c-1'})

pwmDriver.setPWMFreq(50)
pwmDriver.setPWM(2) // channel, on , off

To configure I2c on your Raspberry-pi / Beaglebone please see here

you can find a simple example here

API

makePwmDriver({address:Number,device:String,debug:Bool})

Setting up a new PwmDriver

  • address: Address of the i2c panel, e.g. 0x20
  • device: Device name, e.g. '/dev/i2c-1' (defaults to /dev/i2c-1)
  • debug: flag used to display debug messages

pwmDriver.setPWMFreq(frequency:Number)

Set the PWM frequency to the provided value (in hertz).

pwmDriver.setPWM(channel:Number, on:Number, off:Number)

Sets a single PWM channel.

pwmDriver.setALLPWM(channel:Number, on:Number, off:Number)

Sets all PWM channels.

Contribute

PRs accepted.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT

Based on the Adafruit's Raspberry-Pi Python Code Library

Here is a growing collection of libraries and example python scripts for controlling a variety of Adafruit electronics with a Raspberry Pi

In progress!

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried, Kevin Townsend and Mikey Sklar for Adafruit Industries. BSD license, all text above must be included in any redistribution

To download, we suggest logging into your Pi with Internet accessibility and typing: git clone https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git

Standard - JavaScript Style Guide

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].