Skip to content

Codename One library for accessing IR (Infrared) Emitter on Devices

Notifications You must be signed in to change notification settings

shannah/IRBlaster

Repository files navigation

Codename One IRBlaster Library

An API for using the IR (Infrared) blaster that is available in selected Android devices, in Codename One.

Synopsis

This library provides access to the ConsumerIrManager Android class in Codename One, which provides an API to control the IR blaster on supported devices.

License

Apache 2.0

Installation

Install through Codename One settings.

If you haven’t activated any cn1libs before in your Codename One projects, see this tutorial which explains the process.

Usage Example

if (!IRBlaster.hasIrEmitter()) {
	ToastBar.showErrorMessage("This device is not equipped with an Infrared Blaster");
	return;
}

IRBlaster.transmit(command.getFrequency(), command.getPattern());

Documentation

Building from Source

git clone https://github.com/shannah/IRBlaster
cd IRBlaster
sh setup.sh
./antw jar

Credits

  1. Written by Steve Hannah

  2. Built using Codename One

About

Codename One library for accessing IR (Infrared) Emitter on Devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published