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 🙏

© 2024 – Pkg Stats / Ryan Hefner

arduboy

v0.0.8

Published

A command line interface for the Arduboy.

Downloads

9

Readme

arduboy

This is a general utility for the Arduboy.

The arduboy module uses NodeJS.

Installation: npm install -g arduboy

Example: Generate a C source file from an image.

$ arduboy image tobytes --input=arduboy_logo.png > arduboy_logo.c
info worked if it ends with ok
info using [email protected]
info using [email protected]
info ok

$ cat arduboy_logo.c
const static unsigned char arduboy_logo PROGMEM =
{
  0xf0,0xf8,0x9c,0x8e,0x87,0x83,0x87,0x8e,
  0x9c,0xf8,0xf0,0x00,0x00,0xfe,0xff,0x03,
  0x03,0x03,0x03,0x03,0x07,0x0e,0xfc,0xf8,
  0x00,0x00,0xfe,0xff,0x03,0x03,0x03,0x03,
  0x03,0x07,0x0e,0xfc,0xf8,0x00,0x00,0xff,
  0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0xff,0xff,0x00,0x00,0xfe,0xff,0x83,0x83,
  0x83,0x83,0x83,0xc7,0xee,0x7c,0x38,0x00,
  0x00,0xf8,0xfc,0x0e,0x07,0x03,0x03,0x03,
  0x07,0x0e,0xfc,0xf8,0x00,0x00,0x3f,0x7f,
  0xe0,0xc0,0x80,0x80,0xc0,0xe0,0x7f,0x3f,
  0xff,0xff,0x01,0x01,0x01,0x01,0x01,0x01,
  0x01,0xff,0xff,0x00,0x00,0xff,0xff,0x0c,
  0x0c,0x0c,0x0c,0x1c,0x3e,0x77,0xe3,0xc1,
  0x00,0x00,0x7f,0xff,0xc0,0xc0,0xc0,0xc0,
  0xc0,0xe0,0x70,0x3f,0x1f,0x00,0x00,0x1f,
  0x3f,0x70,0xe0,0xc0,0xc0,0xc0,0xe0,0x70,
  0x3f,0x1f,0x00,0x00,0x7f,0xff,0xc1,0xc1,
  0xc1,0xc1,0xc1,0xe3,0x77,0x3e,0x1c,0x00,
  0x00,0x1f,0x3f,0x70,0xe0,0xc0,0xc0,0xc0,
  0xe0,0x70,0x3f,0x1f,0x00,0x00,0x00,0x00,
  0x00,0x01,0xff,0xff,0x01,0x00,0x00,0x00
}

Install

Install using npm.

npm install --global arduboy

Using arduboy

From a command prompt, run the arduboy command. To see a complete list of commands, run arduboy --help.

Commands

help, config, image

Using image

Use arduboy help image to get details and a full list of commands.

test

To generate a series of test images run,

arduboy image test

tobytes

Convert an image provided with --input=a-file.bmp to the terminal or redirect stdout to a file, > source_file.c.

arduboy tobytes --input=./a-file.png > source_file.c

Develop

To help develop the Arduboy Node module: fork and clone the project locally. Use npm link in the folder the Arduboy repository is cloned into. You can now run arduboy from the command line interface.

Install Latest Source

This will locally install the current development build of the arduboy module.

npm install git+https://[email protected]/rogosher/ArduboyCLI.git

Or use npm link from the project directory after cloning the project.

'Special Features' Requirement

This module requires that Imagemagick be installed to generate the test images.

Linux

Ubuntu

apt-get install imagemagick

Windows

Install the Windows releases for each library.

ImageMagick · download

GraphicsMagick · download

Links

Node.js - https://nodejs.org/en/download/

ImageMagick - http://www.imagemagick.org/script/binary-releases.php

GraphicsMagick - http://www.graphicsmagick.org/download.html