cesarve77 / ir-cordova-plugin

3 stars 4 forks source link

Have you a example for using this Plugin? #1

Open heikoch opened 9 years ago

heikoch commented 9 years ago

I am a beginner with Phonegap. Would like via the IR Led my Galaxy S4 my Samsung TV remote control. Do you have an example of me? I have read with an Arduino and a TSOP1838 the codes the TV remote.

That's the list.

POWER E0E040BF SOURCE E0E0807F SPORTS E0E01DE2 1 E0E020DF 2 E0E0A05F 3 E0E0609F 4 E0E010EF 5 E0E0906F 6 E0E050AF 7 E0E030CF 8 E0E0B04F 9 E0E0708F TXT E0E034CB 0 E0E08877 PRE-CH E0E0708F VOL+ E0E0E01F MUTE E0E0F00F CH+ E0E048B7 VOL- E0E0D02F CHLIST E0E0D629 CH- E0E008F7 MENU E0E058A7 SMARTHUB E0E09E61 GUIDE E0E0F20D TOOLS E0E0D22D TOP E0E006F9 INFO E0E0F807 LEFT E0E0A659 ENTER E0E016E9 RIGHT E0E046B9 RETURN E0E01AE5 BOTTOM E0E08679 EXIT E0E0B44B RED E0E036C9 GREEN E0E028D7 YELLOW E0E0A857 BLUE E0E06897 E-MANUAL E0E0FC03 EXTRA E0E0F50A SEARCH E0E0CE31 PICSIZE E0E07C83 PICTURE E0E014EB AD/SUBST E0E0A45B BACK E0E0A25D PAUSE E0E052AD FORWARD E0E012ED REC E0E0926D PLAY E0E0E21D STOP E0E0629D

Can you help? Many thanks

cesarve77 commented 9 years ago

Hi, sorry but I lost the source code of the example. But I remember that's was working.

check http://stackoverflow.com/questions/20244337/consumerirmanager-api-19

and I remember you have to play with a woking frequency (38400) of your device in this lines of plugin code irService.transmit(38400, signal);

When i write this plugin was for a S4, and old cordova version