diff --git a/pebble.rst b/pebble.rst index ef89177..c103cd1 100644 --- a/pebble.rst +++ b/pebble.rst @@ -42,3 +42,55 @@ This script demonstrates pebble click events, setting text in the view, vibratio + +You can also subscribe to pebble gestures. + +.. code-block:: html + + + + + +API +=== + +pebbleSetTitle(String text, boolean clear) : void + Set the title text area on the pebble view. + +pebbleSetSubtitle(String text, boolean clear) : void + Set the subtitle text area on pebble view. + +pebbleSetBody(String text, boolean clear) : void + Set the body text area on pebble view. + + :text(string): text to display on pebble + :clear(boolean): boolean to clear other text areas (true clears all other text areas) + +pebbleVibe(int vibeType) + Vibrate pebble. + +======== ======= + Type Value +======== ======= +short 0 +long 1 +double 2 +======== ======= + diff --git a/sensors.rst b/sensors.rst index 968bce0..56f8992 100644 --- a/sensors.rst +++ b/sensors.rst @@ -27,6 +27,7 @@ Sensors have unique names and integer types that are used internally and can be =================== ======= Type Value =================== ======= +pebble -7 pupil -2 gps -1 accelerometer 1