⌚SB Watch 2
🚚 Free fedex shipping from 97 $
🌎 WORLDWIDE SHIPPING for 25 $
⌚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.

Please note that the Bluetooth range of Atom One is likely to make this project not usable for real-world scenarios, but you can get an idea about a future use case.

The code is quite simple:

				
					function main() {
    ps.connect('*');
    ps.print('AtomTHMPR');
}

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