Skip to content

Commit 3ccab41

Browse files
authored
Merge pull request #2 from brentru/fix-readme-code
Fixing README.rst
2 parents f34ad8c + 39e8a9a commit 3ccab41

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

README.rst

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Introduction
99
:target: https://discord.gg/nBQh6qu
1010
:alt: Discord
1111

12-
.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Adafruit_IO.svg?branch=master
13-
:target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Adafruit_IO
12+
.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_AdafruitIO.svg?branch=master
13+
:target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_AdafruitIO
1414
:alt: Build Status
1515

1616
CircuitPython wrapper library for communicating with `Adafruit IO <http://io.adafruit.com>`_.
@@ -30,25 +30,35 @@ This is easily achieved by downloading
3030
Usage Example
3131
=============
3232

33-
Create an Adafruit IO Client object
33+
Create an Adafruit IO Client object
34+
3435
.. code-block:: python
35-
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
36+
37+
io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
3638
3739
Sending data to an Adafruit IO feed
40+
3841
.. code-block:: python
39-
io.send_data(feed, data)
42+
43+
io.send_data(feed, data)
4044
4145
Receiving data from an Adafruit IO feed
46+
4247
.. code-block:: python
43-
data = io.receive_data(feed)
48+
49+
data = io.receive_data(feed)
4450
4551
Creating a new feed named circuitpython with a description
52+
4653
.. code-block:: python
47-
feed = io.create_new_feed('circuitpython', 'an Adafruit IO CircuitPython feed')
54+
55+
feed = io.create_new_feed('circuitpython', 'an Adafruit IO CircuitPython feed')
4856
4957
Listing the record of a specified feed:
58+
5059
.. code-block:: python
51-
feed = io.get_feed('circuitpython')
60+
61+
feed = io.get_feed('circuitpython')
5262
5363
Contributing
5464
============

0 commit comments

Comments
 (0)