I was surprised how slow bit banging was in JavaScript! I decided to time instructions on my Flipper and on average each instruction takes about 80-100us (yes, I said 80000ns - 100000ns). But for protocols where you have a CLK/SCK wire, it's typically okay that things are running slow -- as long as there are only a few bytes of data.
Thanks! If you are in the USA, don't forget to enter the giveaway. (If you don't have a USA address but you use Discord, you can still enter the giveaway and I'll fall back to giving you a 1-month Nitro Discord code if you win).
The timing in JavaScript isn't very great. You are better to write a C program for that, or at least a new module that your JavaScript program leverages. IR is typically 38KHz with various bursts of on/off. If you don't want to write code, then you could build a circuit that oscillates at 38KHz with a NAND gate to a GPIO pin and have the JavaScript just signal when to send or not send the signal.
I was surprised how slow bit banging was in JavaScript! I decided to time instructions on my Flipper and on average each instruction takes about 80-100us (yes, I said 80000ns - 100000ns). But for protocols where you have a CLK/SCK wire, it's typically okay that things are running slow -- as long as there are only a few bytes of data.
Thanks!
Thank you, I appreciate the support!
Be sure to join my Flipper Zero Discord - discord.gg/k7WX7Be3Vy
Haaaa I know that logic analyzer ❤
I miss hanging out with you! Let me know if you need me to send you a MAX7219 display!
Cool video 🔥
Thanks! If you are in the USA, don't forget to enter the giveaway. (If you don't have a USA address but you use Discord, you can still enter the giveaway and I'll fall back to giving you a 1-month Nitro Discord code if you win).
Is it possible to create an application that only sends IR signals (saved in the device) through an external button connected to a GPIO pin?
The timing in JavaScript isn't very great. You are better to write a C program for that, or at least a new module that your JavaScript program leverages. IR is typically 38KHz with various bursts of on/off. If you don't want to write code, then you could build a circuit that oscillates at 38KHz with a NAND gate to a GPIO pin and have the JavaScript just signal when to send or not send the signal.