Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
explicitly mention Python for syntax colouring (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimar01123 authored and pd0wm committed Jan 12, 2020
1 parent 19e2393 commit a1fc8c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ cereal supports two backends, one based on [zmq](https://zeromq.org/), the other

Example
---
```python
import cereal.messaging as messaging

# in subscriber
Expand All @@ -36,6 +37,6 @@ Example
pm = messaging.PubMaster(['sensorEvents'])
dat = messaging.new_message()
dat.init('sensorEvents', 1)
dat.sensorEvents[0] = {"gyro": {"v": [0.1,-0.1,0.1]}}
dat.sensorEvents[0] = {"gyro": {"v": [0.1, -0.1, 0.1]}}
pm.send('sensorEvents', dat)

```

0 comments on commit a1fc8c7

Please sign in to comment.