The chipKIT WF32 is Wifi-capable and contains an SD card device. That means we can load host a server on the WF32 and access it from other computers! This Instructable is about setting up a webserver that allows you to access the WF32 pins from a web page.
You will need:
In order for us to properly compile everything, we need to use a test version of MPIDE.
Here is the download link to the recommended test version.
Note: MPIDE test builds may interact with stable builds of MPIDE, so be sure to back up anything crucial.
Extract the files to your desired location. You can open MPIDE by going into the file and double-click on the MPIDE.exe file.
Download this file and extract it. Take note of where you are extracting the folder, you'll need to access it soon.
The file should look like the picture above after it is done downloading/extracting.
Now we're going to move all the contents of the Content folder onto the SD card.
Everything in the Content folder has to be in the Root file in the SD Card. (It just has to look like the above picture when you open up the SD Card.)
Now it's time to open the MPIDE file.
In order for the WF32 to "work" you need to connect it to your network.
Check out the green arrow to see where the SD Card should go.
After the SD Card is plugged into the WF32, connect the WF32 to your Computer. Use a Micro USB Cable to connect the two.
Be sure to have the VU Select jumper at the UART pins, otherwise you won't be able to encode everything.
In order for everything to upload correctly, we need to make sure the "board" in MPIDE is set to WF32. In this case, a picture is worth a thousand words. Check out the picture to see where to change the board to WF32.
Before we can view our Serial Monitor, we need to select our Serial Port. Just like choosing the board, go to Tools, but select Serial Port, and then pickwhatever COM port your WF32 is on.
Now you'll be able to open the Serial Monitor. (You can do this now or in a few steps from now)
Now that you've got your Wifi credentials and the MPIDE is set to WF32, it's time to upload the code. Click on the square upload button in the top left corner and MPIDE, and wait for everything to upload!
After the code has finished uploading, open the Serial Monitor (with the button in the top right corner).
Initialization will happen, when it gets to "Listening Sockets = #" line, you can find the IP address of the WF32.
You can check it out in the picture, it will be something along the lines of 188.8.131.528:80 (It won't be this, but something like it). Enter the underlined portion into your browser. Be sure that the computer your using is on the same network as the WF32.
Once you've entered the IP address, it will take you to a landing page about the server.
You can click on the Read and Modify Board Pins link to get to the Pin Page.
The easiest example is changing Pin 13 from the Tristate button to Digital Output High, then hit the Refresh button. This will change one of the LED pins from OFF to ON.
Of course this is just one example of PIN options you can do. You is access to all non-essential pins!
You can check out the Pin-out tables here.