Atom THMPR
About
Atom Thmpr is a basic thumper tool you can send messages with. Are you pressing a button on Atom? The PeekSmith will vibrate. Are you pressing a button on the PeekSmith? The Atom will vibrate.
The code is quite simple:
function main() {
ps.connect();
ps.print("Atom\nTHMPR");
}
function onAtomButtonPress() {
ps.vibrate(".");
}
function onPeekSmithButtonPress() {
atom.vibrate(".");
}
function onEvent(e) {
if (e.type === "press") {
if (e.source === "atom:button") onAtomButtonPress();
if (e.source === "ps:button") onPeekSmithButtonPress();
}
}
General
πΒ First Steps
MagiScript Editor
πΒ Basics
πΒ Running Your First Program
πΒ App Store
πΒ Atom Settings (Editor)
πΒ Debugging Techniques
Examples
πΒ Atom Time
ποΈ Time Practice
πΒ Atom Pi (Pi Revelations)
πΒ Atom Drum
ποΈ Atom Stack
πΒ Atom Square
πΒ Atom Level
πΒ Atom THMPR
πΒ Poker Hands
πΒ Keyboard Numeric
πΒ Keyboard NOKIA
πΒ Keyboard Cursor
πΒ Keyboard Media
πΒ Keyboard Custom
Input/Output
πΒ Buttons
πΒ Vibration Motor
πΒ RGB LED
πΒ Devices
πΒ PeekSmith
πΒ SB Watch
πΒ Bluetooth Keyboard
πΒ Bluetooth Mouse
πΒ Timers
πΒ Database
πΒ Events
πΒ System (exit, sleep, rand)
πΒ Objects (card, time)
Language
πΒ Summary
πΒ Comments
πΒ Variable Declarations
πΒ Operators
πΒ Control Flow
πΒ Functions
πΒ Numbers
πΒ Strings
πΒ Arrays
πΒ Objects
πΒ Uint8Array