Skip to content
View in the app

A better way to browse. Learn more.

Flirc Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sending IR with Python/flirc

Featured Replies

I have been messing around with the IR transmit capability of my flirc. I am able to send IR signals using the flirc_util app, but it takes around 800ms to send a single command. I suspect it's because flirc_util opens the device, sends the signal, and then closes the device. If I try with the repeat set higher, it doesn't significantly affect the timing.

It looks like the SDK provides static library (libflirc.a). I'm programming in python on a raspberry pi 3, which doesn't work with static libraries. Is it possible to get direct access to the flirc to open the device and send signals? Or possibly get a dynamic library?

Thanks,

Ben

  • 1 year later...

Also looking for something like this. I tried adapting the `ir` example from the sdk but it just sends the code type and hex value to the statically linked library.

In my case I want to keep the device open and send raw IR codes programmatically.

So I managed to adapt an example from a project that used the C library to transmit codes.

fl_transmit_raw says its taking 65 ms to run but I think running on the main thread is slowing it down with the UI waiting for it.

The code I built out is here https://gist.github.com/parkerlreed/4f7d2026c5c4a29a4a0cf39e40705473

EDIT: Oh just realized I put the device init and disconnect in the button function... I'll separate these out and see how it performs.

Edited by parkerlreed

  • 5 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.