Fix formatting of sense hat readme

This commit is contained in:
Nick O'Leary 2016-03-01 23:52:31 +00:00
parent c3b08270ad
commit 6447cf65f1
1 changed files with 11 additions and 11 deletions

View File

@ -38,9 +38,9 @@ per second. The `topic` is set to `motion` and the `payload` is an object with t
following values: following values:
- `acceleration.x/y/z` : the acceleration intensity in Gs - `acceleration.x/y/z` : the acceleration intensity in Gs
-`gyroscope.x/y/z` : the rotational intensity in radians/s - `gyroscope.x/y/z` : the rotational intensity in radians/s
-`orientation.roll/pitch/yaw` : the angle of the axis in degrees - `orientation.roll/pitch/yaw` : the angle of the axis in degrees
-`compass` : the direction of North in degrees - `compass` : the direction of North in degrees
#### Environment events #### Environment events
@ -49,17 +49,17 @@ sensors. They are sent at a rate of approximately 1 per second. The `topic`
is set to `environment` and the `payload` is an object is set to `environment` and the `payload` is an object
with the following values: with the following values:
-`temperature` : degrees Celsius - `temperature` : degrees Celsius
-`humidity` : percentage of relative humidity - `humidity` : percentage of relative humidity
-`pressure` : Millibars - `pressure` : Millibars
#### Joystick events #### Joystick events
Joystick events are sent when the Sense HAT joystick is interacted with. The Joystick events are sent when the Sense HAT joystick is interacted with. The
`topic` is set to `joystick` and the `payload` is an object with the following values: `topic` is set to `joystick` and the `payload` is an object with the following values:
-`key` : one of `UP`, `DOWN`, `LEFT`, `RIGHT`, `ENTER` - `key` : one of `UP`, `DOWN`, `LEFT`, `RIGHT`, `ENTER`
-`state` : the state of the key: - `state` : the state of the key:
-`0` : the key has been released - `0` : the key has been released
-`1` : the key has been pressed - `1` : the key has been pressed
-`2` : the key is being held down - `2` : the key is being held down