Difference between revisions of "CSC231 Lab 6"
Line 7: | Line 7: | ||
[[Image:ArduinoStamp.jpg | right]] | [[Image:ArduinoStamp.jpg | right]] | ||
© D. Thiebaut, 2008 | © D. Thiebaut, 2008 | ||
+ | |||
+ | In this lab we are going to make the Arduino keep on listening to commands it gets from the assembly language on the PC, and execute each command as it receives them. | ||
+ | |||
+ | ==Getting the Messenger Library for the Arduino== | ||
+ | |||
+ | You need a new library for the Arduino called '''Messenger''' | ||
+ | |||
+ | * Boot the Ubuntu CD-Rom | ||
+ | * Open a Terminal window and type | ||
+ | sudo su | ||
+ | cd | ||
+ | wget http://www.arduino.cc/playground/uploads/Code/Messenger.zip | ||
+ | |||
+ | * unzip the file | ||
+ | |||
+ | unzip Messenger.zip | ||
+ | |||
+ | * Copy the file in the Arduino hardware/libraries directory. | ||
==Assembly Part== | ==Assembly Part== |
Revision as of 15:35, 29 October 2008
Back to CSC231 Weekly Schedule
CSC 231 Lab # 6
© D. Thiebaut, 2008
In this lab we are going to make the Arduino keep on listening to commands it gets from the assembly language on the PC, and execute each command as it receives them.
Getting the Messenger Library for the Arduino
You need a new library for the Arduino called Messenger
- Boot the Ubuntu CD-Rom
- Open a Terminal window and type
sudo su cd wget http://www.arduino.cc/playground/uploads/Code/Messenger.zip
- unzip the file
unzip Messenger.zip
- Copy the file in the Arduino hardware/libraries directory.
Assembly Part
- Open a Terminal window under Ubuntu and type
sudo su cd
- Highlight the contents of the file driver.c and type Control-C to copy it to the clipboard
- In the terminal window type
cat > driver.c
- and then click the middle button of your mouse to paste the code you had highlighted
- Type Control-D to close the file.
- Repeat the same operations for the files