Wondering what’s next for npm?Check out our public roadmap! »

    inkyphat

    1.1.2 • Public • Published

    inkyphat

    Build Status Coverage Status dependencies Status devDependencies Status npm version npm downloads

    A NodeJS Module to allow you to control the Inkyphat for Raspberry Pi. Based on the Python code available from Pimoroni.

    Installation

    npm install inkyphat

    Usage

    const inkyphat = require('inkyphat')();
     
    async function main() {
     
      await inkyphat.init();
     
      inkyphat.setPixel(1, 5, inkyphat.RED);
     
      inkyphat.drawRect(50, 100, inkyphat.BLACK);
     
      await inkyphat.redraw();
     
      await inkyphat.destroy();
    }
    main();

    Tests

    npm test - Run Tests.

    npm run coverage - Run Tests and display coverage.

    npm run lint - Run ES Lint

    Contributing

    In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

    Install

    npm i inkyphat

    DownloadsWeekly Downloads

    20

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    49.9 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar