Closed eadmaster closed 1 month ago
while checking the existing code i've also noticed the current tv-b-gone code is not using the correct function args
void sendNEC(uint64_t data, uint16_t nbits = kNECBits,
uint16_t repeat = kNoRepeat);
UPDATE:
IRSend {"Protocol":"NEC","Bits":32,"Data":"0x20DF10EF"}
)RfSend {"Data":"0x447503","Bits":24,"Protocol":1,"Pulse":174,"Repeat":10}
other issues i've found:
IrTx
is reset to 0 during boot, must be set manually via the config menu (quick workaround here)UPDATE: added some audio-related commands via the ESP8266Audio library just for fun:
music_player mario:d=4,o=5,b=100:16e6,16e6,32p,8e6,16c6,8e6,8g6,8p,8g,8p,8c6,16p,8g,16p,8e,16p,8a,8b,16a#,8a,16g.,16e6,16g6,8a6,16f6,8g6,8e6,16c6,16d6,8b,16p,8c6,16p,8g,16p,8e,16p,8a,8b,16a#,8a,16g.,16e6,16g6,8a6,16f6,8g6,8e6,16c6,16d6,8b,8p,16g6,16f#6,16f6,16d#6,16p,16e6,16p,16g#,16a,16c6,16p,16a,16c6,16d6,8p,16g6,16f#6,16f6,16d#6,16p,16e6,16p,16c7,16p,16c7,16c7,p,16g6,16f#6,16f6,16d#6,16p,16e6,16p,16g#,16a,16c6,16p,16a,16c6,16d6,8p,16d#6,8p,16d6,8p,16c6
music_player audio/1up.wav
say hello world
These could go in a new "Audio" menu in the future.
Another push adding a much needed "screensaver" feature:
corresponding serial commands are:
lcd off
lcd on
TODO for this:
another usability feature: added keyboard shortcuts to quickly access apps from the main menu. Only 3 are hard-coded atm:
i
-> Custom IRr
, s
-> Custom RF/SubGhzw
-> Web UIObliviously these works only on the Cardputer.
Added another serial command: clock
(just show a big clock).
EDIT: just realised this needs -DARDUINO_USB_CDC_ON_BOOT=1 added to the platformio build flags to work correctly on the Cardputer.
just tested badusb, it is working correctly with this flag turned on, so i am adding another shortcut for it:
b
-> bad USBjust noticed the serial cmds are not processed when you are in any submenu, but they are kept in the buffer and only processed when you go back to the main menu.
I may add a task to have async execution, but this could led to other issues due to concurrent access to global resources, so my first PR for this will only include sync command processing. (tldr: it only works when you are in the main menu)
I may add a task to have async execution, but this could led to other issues due to concurrent access to global resources
I've tried this without setting any mutexes and it seems to be working correctly, not sure if it is actually a good idea to have in the mainline.
example use cases: send IR/RF commands while running the captive portal, listen an audio file while navigating the UI, etc.
Closing this as the base feature was merged, currently adding more cmds here: https://github.com/pr3y/Bruce/issues/107
cloning FlipperZero CLI, allow to quickly send cmds over serial.
e.g.
Currently WIP in my forked repo.
use cases:
EDIT: just realised this needs
-DARDUINO_USB_CDC_ON_BOOT=1
added to the platformio build flags to work correctly on the Cardputer.