GithubHelp home page GithubHelp logo

mherick / anypixel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecreativelab/anypixel

0.0 1.0 0.0 87.54 MB

A web-friendly way for anyone to build unusual displays

License: Apache License 2.0

JavaScript 5.89% HTML 0.54% CSS 0.04% C 66.27% C++ 0.27% Objective-C 0.03% Assembly 0.29% Python 0.01% Eagle 26.65%

anypixel's Introduction

img

AnyPixel.js is an open-source software and hardware library that makes it possible to use the web to create big, unusual, interactive displays. Anyone can fork the code and the schematics to create their own display at any scale.

The first display using this platform is in the 8th Avenue lobby at the Google NYC office. To create this installation, we used 5880 off-the-shelf arcade buttons with LEDs inside them as our pixels. AnyPixel.jsโ€™ straightforward hardware/software framework makes it easy to build any display where each pixel is an interactive element.

buttonwall

What You'll Find

  • /hardware - EAGLE schematics, board layouts, CAD files, wiring diagrams, and blueprints.
  • /firmware - microcontroller code, written for the STM32 family of devices.
  • /backend - node.js and chrome applications for communicating with the hardware.
  • /frontend - the app framework, an in-browser previewer, and 12 example apps written by Googlers and friends worldwide.
  • /rpi-example - a simple starter example connecting a Raspberry Pi with AnyPixel to a single button for round trip communication.

Getting Started

Check out the examples

We've included 12 example apps written by Googlers and friends for the 8th Avenue lobby display in NYC. To check them out, install the previewer and run one of the examples.

Build your own app

Building your own app is easy with the Anypixel framework. To get started, check out the framework documentation and the example app:

var anypixel = require('anypixel'); 
var ctx = anypixel.canvas.getContext2D();

var colors = ['#F00', '#0F0', '#00F'];

/**  
 * * Listen for onButtonDown events and draw a 2x2 rectangle at the event site
 */
document.addEventListener('onButtonDown', function(event) {   
	ctx.fillStyle = colors[Math.floor(Math.random() * colors.length)];
	ctx.fillRect(event.detail.x - 1, event.detail.y - 1, 2, 2);
}); 

Contributors

Note

Third party directories may have different (non-Apache 2.0) licenses.

anypixel's People

Contributors

ryburke avatar jeremyabel avatar ajiblock avatar brianmountford avatar avindra avatar streeter avatar engstrom avatar franciscog avatar kasimtan avatar hapticdata avatar pjstein avatar tcyrus avatar mrayinteractive avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.