⌚SB Watch 2
⌚SB Watch 2
🚚 Free fedex shipping from 97 $
🌎 WORLDWIDE SHIPPING for 25 $
Search
Close this search box.

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();
  }
}