Skip to content

Commit

Permalink
serial messages working
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbader committed Apr 14, 2016
1 parent 426a01e commit 78b8d10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ This repository contains some arduino examples and libraries
##Libraries
You can checkout a single folder/library with svn to your local sketchbook folder
```
svn checkout https://github.com/maxbader/arduino_tools/trunk/libraries/Servos_zero
svn checkout https://github.com/maxbader/arduino_tools/trunk/libraries/Servos_m0
```


##Examples
- serial_using_structs: Arduino serial communication using structs with a python demo
- serial_using_structs: Arduino serial communication using structures with a python demo
- timer_zero_tc_interrupt: TC Timer with interrupt handler on capture and ovf
- timer_m0_tc_interrupt: TC Timer with interrupt handler on capture and ovf
- timer_zero_tc_counter: TC Timer reading counter value
Expand Down
13 changes: 9 additions & 4 deletions libraries/serial_using_structs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Serial Using Structs
This library contains a demo with a python program for your PC to show a time sync and message exchange with an arduino.
# Serial Using Structure's
This library contains a demo with a python program for your PC to show a time sync and message exchange with an Arduino board.
There are to operation modes
- simple_messages: A simple_message has one header, a object type id and the object encoded
```header, id, obj```
Expand All @@ -8,18 +8,23 @@ There are to operation modes
## Hardware
it should work on all Arduinos

##Install
###Linux
Step into your library
### simple messages

##Demo
### simple messages
On the PC run the python program demo_simple_messages:
```
export PYTHONPATH="$PYTHONPATH:py/modules/"
python py/src/demo_simple_messages.py
```
On the arduino run the example demo_simple_messages.ino
On the Arduino run the example demo_simple_messages
### packed messages
On the PC run the python program demo_packed_messages:
```
export PYTHONPATH="$PYTHONPATH:py/modules/"
python py/src/demo_packed_messages.py
```
On the arduino run the example demo_simple_messages.ino
On the Arduino run the example demo_packed_messages

0 comments on commit 78b8d10

Please sign in to comment.