Skip to content

Instantly share code, notes, and snippets.

View arpanghosh8453's full-sized avatar
🎯
Focusing

Arpan Ghosh arpanghosh8453

🎯
Focusing
View GitHub Profile
@arpanghosh8453
arpanghosh8453 / gpio_morse_code.js
Last active May 2, 2024 03:19
A script for sending arbitrary message as morse code signals using a LED light with flipper zero GPIO
let keyboard = require("keyboard");
let submenu = require("submenu");
let storage = require("storage");
let notify = require("notification");
let gpio = require("gpio"); // remove this if you are not using any GPIO (only using internal LED)
function blink_morse_code(morse_letter, morse_led_pin, time_delay) {
for (let i = 0; i < morse_letter.length; i++) {
if (chr(morse_letter.at(i)) === '.'){
if (morse_led_pin === 'INTERNAL'){