LED Flashlight party.
What's New
Version 2.2
Fixed some bugs.
What it does
9 actions-
Choose from MenuStart Torch Party With
-
Choose from MenuOld Way (Supports older devices.)
-
Repeat
-
Set Flashlight
-
Set Flashlight
-
Choose from MenuNew Way (Supports newer devices.)
-
Repeat
-
Set Flashlight
-
Choose from MenuI’ve changed my mind (Cancel)
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define mac false
#include 'actions/device'
#define color red
#define glyph lightningBolt
menu "Start Torch Party With" {
item "Old Way (Supports older devices.)":
repeat _ for 50 {
flashlightOff()
flashlightOn(0.5)
}
item "New Way (Supports newer devices.)":
repeat _ for 50 {
flashlightOff()
}
item "I’ve changed my mind (Cancel)":
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by spdev
You Might Also Like
Advertisement