Yes, you could definitely do it - but you need USB or Bluetooth HID - so the Espruino Original (which can only do Bluetooth Serial) wouldn't be able to do it.
MDBT42 Breakout/Puck.js/Bangle.js/Pixl.js would all work fine though.
The Bluetooth HID example at https://www.espruino.com/BLE+Keyboard has an example of sending a then A - and you just need to take that example and nest calls such that you have it 5 deep - one for each of the 5 commands.
Unless you have a reference perhaps the best way to figure it out is to attach a keyboard, then see what keys you need to press on the keyboard to make the right things happen.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, you could definitely do it - but you need USB or Bluetooth HID - so the Espruino Original (which can only do Bluetooth Serial) wouldn't be able to do it.
MDBT42 Breakout/Puck.js/Bangle.js/Pixl.js would all work fine though.
The Bluetooth HID example at https://www.espruino.com/BLE+Keyboard has an example of sending
a
thenA
- and you just need to take that example and nest calls such that you have it 5 deep - one for each of the 5 commands.Unless you have a reference perhaps the best way to figure it out is to attach a keyboard, then see what keys you need to press on the keyboard to make the right things happen.