Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shannah/irblaster
Codename One library for accessing IR (Infrared) Emitter on Devices
https://github.com/shannah/irblaster
Last synced: 9 days ago
JSON representation
Codename One library for accessing IR (Infrared) Emitter on Devices
- Host: GitHub
- URL: https://github.com/shannah/irblaster
- Owner: shannah
- Created: 2020-06-21T13:04:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T18:44:14.000Z (over 3 years ago)
- Last Synced: 2024-12-24T05:04:47.829Z (18 days ago)
- Language: Java
- Size: 22.5 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Codename One IRBlaster Library
An API for using the IR (Infrared) blaster that is available in selected Android devices, in https://www.codenameone.com[Codename One].
== Synopsis
This library provides access to the https://developer.android.com/reference/android/hardware/ConsumerIrManager[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 https://www.codenameone.com/blog/automatically-install-update-distribute-cn1libs-extensions.html[this tutorial] which explains the process.
== Usage Example
[source,java]
----
if (!IRBlaster.hasIrEmitter()) {
ToastBar.showErrorMessage("This device is not equipped with an Infrared Blaster");
return;
}
IRBlaster.transmit(command.getFrequency(), command.getPattern());
----== Documentation
. https://shannah.github.io/IRBlaster/javadoc[JavaDocs]
== Building from Source
[source,bash]
----
git clone https://github.com/shannah/IRBlaster
cd IRBlaster
sh setup.sh
./antw jar
----== Credits
. Written by https://www.sjhannah.com[Steve Hannah]
. Built using https://www.codenameone.com[Codename One]