Tutorial on How to Compile CuHead Sample Code for Arduino Uno
Transcript of Tutorial on How to Compile CuHead Sample Code for Arduino Uno
![Page 1: Tutorial on How to Compile CuHead Sample Code for Arduino Uno](https://reader030.fdocuments.us/reader030/viewer/2022021008/62039ec7da24ad121e4b8560/html5/thumbnails/1.jpg)
1 / 9
Tutorial on How to Compile CuHead
Sample Code for Arduino Uno
07/2012
CuteDigi.com
![Page 2: Tutorial on How to Compile CuHead Sample Code for Arduino Uno](https://reader030.fdocuments.us/reader030/viewer/2022021008/62039ec7da24ad121e4b8560/html5/thumbnails/2.jpg)
2 / 9
CuHead is LinkSprite’s WiFi Shield for Arduino. It can be ordered from:
http://www.cutedigi.com/wireless/wifi/linksprite-cuhead-wifi-shield-v2-0-for-arduino.html
In this short tutorial, we are going to cover how to compile the Cuhead Sample program for
Arduino Uno board.
First, we need to download the Arduino IDE from www.arduino.cc.
We download Arduino 1.0.1.
![Page 3: Tutorial on How to Compile CuHead Sample Code for Arduino Uno](https://reader030.fdocuments.us/reader030/viewer/2022021008/62039ec7da24ad121e4b8560/html5/thumbnails/3.jpg)
3 / 9
In next step, we download CuHead library from:
https://github.com/linksprite/ZG2100BasedWiFiShield/zipball/master
Unzip the zipball to the “arduino-1.0.1\libraries”:
As Arduino doesn’t recognize the directory name, please rename it to CuHead:
![Page 4: Tutorial on How to Compile CuHead Sample Code for Arduino Uno](https://reader030.fdocuments.us/reader030/viewer/2022021008/62039ec7da24ad121e4b8560/html5/thumbnails/4.jpg)
4 / 9
Launch Arduino by double click “arduino” below:
Open an example as below:
![Page 5: Tutorial on How to Compile CuHead Sample Code for Arduino Uno](https://reader030.fdocuments.us/reader030/viewer/2022021008/62039ec7da24ad121e4b8560/html5/thumbnails/5.jpg)
5 / 9
Select the target board as “Arduino Uno”:
![Page 6: Tutorial on How to Compile CuHead Sample Code for Arduino Uno](https://reader030.fdocuments.us/reader030/viewer/2022021008/62039ec7da24ad121e4b8560/html5/thumbnails/6.jpg)
6 / 9
Click Sketch-> Verify/Compile:
![Page 7: Tutorial on How to Compile CuHead Sample Code for Arduino Uno](https://reader030.fdocuments.us/reader030/viewer/2022021008/62039ec7da24ad121e4b8560/html5/thumbnails/7.jpg)
7 / 9
As shown above, we got errors!
Don’t be panic. Depending on what type of sample program we want to build, we need
to a little bit of extra work by editing a file named “apps-conf.h” under
“arduino-1.0.1\libraries\CuHead”:
![Page 8: Tutorial on How to Compile CuHead Sample Code for Arduino Uno](https://reader030.fdocuments.us/reader030/viewer/2022021008/62039ec7da24ad121e4b8560/html5/thumbnails/8.jpg)
8 / 9
For this sample code, we are building webserver, so we comment out other defines,
and uncomment the APP_WEBSERVER.
![Page 9: Tutorial on How to Compile CuHead Sample Code for Arduino Uno](https://reader030.fdocuments.us/reader030/viewer/2022021008/62039ec7da24ad121e4b8560/html5/thumbnails/9.jpg)
9 / 9
Let’s hit Sketch-> Verify/Compile one more:
Now, we are successful!