Code Monkey home page Code Monkey logo

ofxpjcontrol's Introduction

Name    : ofxPJControl Library                         
Author  : Noah Shibley, http://socialhardware.net                       
Date    : Aug 9th 2010                                 
Version : 0.1                                               
Notes   : PJLink and NEC projector control addon.
Dependencies:	ofxNetwork addon

Allows you to turn on or off and control a PJLink(most projectors) or NEC projector through the network.

PJLink Specification

http://pjlink.jbmia.or.jp/english/data/5-1_PJLink_eng_20131210.pdf

"PJLink enables central control of projectors manufactured by different vendors and projectors can be operated by a controller."


Function list:

	void On(); //command to turn the projector on
	void Off(); //command to turn the projector off
	void sendPJLinkCommand(string command); //send any PJLink command to the projector
	void setup(string IP_add="192.168.0.100",int protocol=PJLINK_MODE, string password=""); //default
	void setProjectorType(int protocol); //NEC_MODE or PJLINK_MODE
	void setProjectorIP(string IP_add); //the network IP of the projector
	void setProjectorPassword(string passwd); //password for PJLink authentication
	bool getProjectorStatus(); //return whether projector is on (true) or off (false)  

Example:

Step 1. in the testApp.h:

#include "ofxPJControl.h"	
ofxPJControl projector1;

Step 2. in the testApp.cpp:

//Your projectors IP, and if its not PJLINK try NEC
projector1.setup("192.168.1.281",PJLINK_MODE,"mypassword"); 
projector1.On();
projector1.Off(); 

ofxpjcontrol's People

Contributors

nullboundary avatar

Watchers

 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.