Skip to content

Commit

Permalink
README updated
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Dec 1, 2012
1 parent d093d40 commit a773372
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion nanpyapi/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
Nanpyapi
NanpyAPI
========

Simple RESTful Web API to control Arduino pins with Nanpy & Flask

Dependencies
------------

- nanpy > 0.5
- flask

Some examples using curl
------------------------

Read from analog pin 0

curl http://127.0.0.1:5000/arduino/analogpin/0

Write 1 on digital pin 13

curl -H "Content-type: application/json" -X POST http://127.0.0.1:5000/arduino/digitalpin/13 -d '{"value":1}'


0 comments on commit a773372

Please sign in to comment.