Permalink
Browse files

Updated language/context label on all sketches

  • Loading branch information...
tigoe committed Jul 12, 2011
1 parent b1278a3 commit 5789f93e575351915ce28efef97679ab7017b1fb
Showing with 132 additions and 86 deletions.
  1. +46 −0 chapter1/triangle/triangle.pde
  2. +1 −1 chapter10/GetPostWebServer/GetPostWebServer.ino
  3. +1 −1 chapter10/GsrReader/GsrReader.ino
  4. +1 −1 chapter10/P4ADatalogger/P4ADatalogger.pde
  5. +1 −1 chapter10/P4ATest/P4ATest.pde
  6. +1 −1 chapter10/TempRelayControlSdRead/TempRelayControlSdRead.ino
  7. +1 −1 chapter10/TemperatureRelayControl/TemperatureRelayControl.ino
  8. +1 −1 chapter10/TwilioWebServer/TwilioWebServer.ino
  9. +1 −1 chapter10/WebServerDiagnostic/WebServerDiagnostic.ino
  10. +1 −1 chapter10/sms.php
  11. +1 −1 chapter11/GpsLogger/GpsLogger.ino
  12. +1 −1 chapter11/GpsLogger0002/GpsLogger0002.ino
  13. +1 −1 chapter11/MidiScanBank/MidiScanBank.ino
  14. +1 −1 chapter11/MidiStinger/MidiStinger.ino
  15. +1 −1 chapter11/MidiTheremin/MidiTheremin.ino
  16. +1 −1 chapter11/SdWriter/SdWriter.ino
  17. +2 −2 chapter2/project1/RGBLEDControl/RGBLEDControl.ino
  18. +1 −1 chapter2/project1/RGBTest/RGBTest.pde
  19. +1 −1 chapter2/project2/MonskiPong/MonskiPong.pde
  20. +1 −1 chapter2/project2/MonskiPongHandshaking/MonskiPongHandshaking.pde
  21. +1 −1 chapter2/project2/SensorReader/SensorReader.pde
  22. +1 −1 chapter2/project2/SensorReaderHandshaking/SensorReaderHandshaking.pde
  23. +1 −1 chapter2/project2/SerialStringReader/SerialStringReader.pde
  24. +1 −1 chapter3/general/age_checker.php
  25. +1 −1 chapter3/general/date_printer.php
  26. +1 −1 chapter3/general/get_parameters.php
  27. +1 −1 chapter3/general/mailer.php
  28. +1 −1 chapter3/project5/AnalogSensorReader/AnalogSensorReader.pde
  29. +1 −1 chapter3/project5/BasicVideo/BasicVideo.pde
  30. +1 −1 chapter3/project5/CatMailSender/CatMailSender.pde
  31. +1 −1 chapter3/project5/CatUploader/CatUploader.pde
  32. +1 −1 chapter3/project5/CatUploaderMailer/CatUploaderMailer.pde
  33. +1 −1 chapter3/project5/CatUploaderSerial/CatUploaderSerial.pde
  34. +1 −1 chapter3/project5/PictureFileSaver/PictureFileSaver.pde
  35. +1 −1 chapter3/project5/SerialStringReader/SerialStringReader.pde
  36. +1 −1 chapter3/project5/SerialStringReaderGrapher/SerialStringReaderGrapher.pde
  37. +1 −1 chapter3/project5/cat-script.php
  38. +1 −1 chapter4/general/DhcpExample/DhcpExample.ino
  39. +1 −1 chapter4/general/ProcessingToSerialToEthernet/ProcessingToSerialToEthernet.pde
  40. +1 −1 chapter4/general/SerialToEthernet/SerialToEthernet.ino
  41. +1 −1 chapter4/general/SerialToEthernet/SerialToEthernet.pde
  42. +1 −1 chapter4/general/TestServer/TestServer.pde
  43. +1 −1 chapter4/project6/RGBWebServer/RGBWebServer.ino
  44. +1 −1 chapter4/project6/SimpleWebServer/SimpleWebServer.ino
  45. +1 −1 chapter4/project6/SimpleWebServer/SimpleWebServer.pde
  46. +1 −1 chapter4/project7/AQIWebClient/AQIWebClient.ino
  47. +1 −1 chapter4/project7/MeterTester/MeterTester.pde
  48. +1 −1 chapter4/project7/webscraper.php
  49. +1 −1 chapter5/project8/ChatServerTesting/ChatServerTesting.pde
  50. +1 −1 chapter6/project10/XbeeAnalogDuplex/XbeeAnalogDuplex.pde
  51. +1 −1 chapter6/project11/BluetoothConnect/BluetoothConnect.pde
  52. +1 −1 chapter6/project12/WifiRGBServer/WifiRGBServer.ino
  53. +1 −1 chapter7/general/UDPBroadcastQuery/UDPBroadcastQuery.pde
  54. +1 −1 chapter7/general/UDPDirectedQuery/UDPDirectedQuery.pde
  55. +1 −1 chapter7/general/UDPQueryResponse/UDPQueryResponse.pde
  56. +1 −1 chapter7/project13/GasWebServer/GasWebServer.pde
  57. +1 −1 chapter7/project13/XBeeReader/XBeeReader.pde
  58. +1 −1 chapter7/project14/XBeeToUDP/XBeeToUDP.pde
  59. +1 −1 chapter7/project14/XbeePacketGrapher/XbeePacketGrapher.pde
  60. +1 −1 chapter7/project14/fake/fake.pde
  61. +1 −1 chapter8/project15/IRSensorReader/IRSensorReader.ino
  62. +1 −1 chapter8/project16/UltrasonicSensorReader/UltrasonicSensorReader.ino
  63. +1 −1 chapter8/project17/XbeeSignalStrengthReader/XbeeSignalStrengthReader.pde
  64. +1 −1 chapter8/project19/GpsParser/GpsParser.pde
  65. +1 −1 chapter8/project20/compass/compass.ino
  66. +1 −1 chapter8/project21/AccelerometerCalibrate/AccelerometerCalibrate.ino
  67. +1 −1 chapter8/project21/AccelerometerDisplay/AccelerometerDisplay.pde
  68. +1 −1 chapter8/project21/AccelerometerReader/AccelerometerReader.ino
  69. +1 −1 chapter9/HostIpWebClient/HostIpWebClient.ino
  70. +1 −1 chapter9/ip_geocode.php
  71. +1 −1 chapter9/project22/ColorRecognition/ColorRecognition.pde
  72. +1 −1 chapter9/project23/FaceDetection/FaceDetection.pde
  73. +1 −1 chapter9/project23/FaceDetection/applet/FaceDetection.java
  74. +1 −1 chapter9/project23/FaceDetection/applet/FaceDetection.pde
  75. +1 −1 chapter9/project25/IDInnovationsRfidReader/IDInnovationsRfidReader.ino
  76. +1 −1 chapter9/project26/RfidReaderArduino/RfidReaderArduino.ino
  77. +1 −1 chapter9/project26/RfidToX10/RfidToX10.ino
  78. +1 −1 chapter9/project27/SimpleLcd/SimpleLcd.ino
  79. +1 −1 chapter9/project27/SonMicroFirmware/SonMicroFirmware.ino
  80. +1 −1 chapter9/project27/SonMicroFirmwareReaderProcessing/SonMicroFirmwareReaderProcessing.pde
  81. +1 −1 chapter9/project27/SonMicroPassthruSparkfun/SonMicroPassthruSparkfun.ino
  82. +1 −1 chapter9/project27/SonMicroPassthruTinkerKit/SonMicroPassthruTinkerKit.ino
  83. +1 −1 chapter9/project27/SonMicroWriter/SonMicroWriter.pde
  84. +1 −1 chapter9/project27/TwitterWebClient/TwitterWebClient.ino
  85. +1 −1 unused examples/ToxicGasServer/ToxicGasServer.pde
  86. +1 −1 unused examples/ToxicGasWebClient/ToxicGasWebClient.pde
@@ -0,0 +1,46 @@
/*
Triangle drawing program
Context: Processing
Draws a triangle whenever the mouse button is not pressed.
Erases when the mouse button is pressed.
*/
// declare your variables:
float redValue = 0; // variable to hold the red color
float greenValue = 0; // variable to hold the green color
float blueValue = 0; // variable to hold the blue color
// the setup() method runs once at the beginning of the program:
void setup() {
size(320, 240); // sets the size of the applet window
background(0); // sets the background of the window to black
fill(0); // sets the color to fill shapes with (0 = black)
smooth(); // draw with antialiased edges
}
// the draw() method runs repeatedly, as long as the applet window
// is open. It refreshes the window, and anything else you program
// it to do:
void draw() {
// Pick random colors for red, green, and blue:
redValue = random(255);
greenValue = random(255);
blueValue = random(255);
// set the line color:
stroke(redValue, greenValue, blueValue);
// draw when the mouse is up (to hell with conventions):
if (mousePressed == false) {
// draw a triangle:
triangle(mouseX, mouseY, width/2, height/2,pmouseX, pmouseY);
}
// erase when the mouse is down:
else {
background(0);
fill(0);
}
}
@@ -1,6 +1,6 @@
/*
GET/POST Web server with SD card read
Language: Arduino
Context: Arduino
Reads a TMP36 temperature sensor and serves the result
in a web page. Allows changing of the thermostat
from a web form.
@@ -1,6 +1,6 @@
/*
Galvanic Skin Response reader
Language: Arduino
Context: Arduino
*/
const int voltagePin = 11; // use pin 11 as voltage
const int groundPin = A1; // use pin A1 as ground
@@ -2,7 +2,7 @@
Datalogger
Receives data via Bluetooth every ten seconds
Uploads data via HTTP every two minutes
Language: Processing, Android mode
Context: Processing, Android mode
*/
import cc.arduino.btserial.*;
// instance of the library:
@@ -1,6 +1,6 @@
/*
Processing for Android test
Language: Processing
Context: Processing
*/
float ballX, ballY; // position of the ball
// file to save data for pause and resume:
@@ -1,7 +1,7 @@
/*
TMP36 Temperature reader/relay control with SD card read
Language: Arduino
Context: Arduino
Reads a TMP36 temperature sensor
*/
#include <EEPROM.h>
@@ -1,6 +1,6 @@
/*
TMP36 Temperature reader/relay control
Language: Arduino
Context: Arduino
Reads a TMP36 temperature sensor
*/
@@ -1,6 +1,6 @@
/*
GET/POST Web server with SD card read
Language: Arduino
Context: Arduino
Reads a TMP36 temperature sensor and serves the result
in a web page. Allows changing of the thermostat
from a web form.
@@ -1,7 +1,7 @@
/*
GET/POST Web server with SD card read
Language: Arduino
Context: Arduino
Reads a TMP36 temperature sensor
*/
#include <SD.h>
View
@@ -1,7 +1,7 @@
<?php
/*
SMS messenger
Language: PHP
Context: PHP
*/
$phoneNumber = $_REQUEST["phoneNumber"]; // get the phone number
$carrier = $_REQUEST["carrier"]; // get the carrier
@@ -1,6 +1,6 @@
/*
GPS Datalogger
Language: Arduino
Context: Arduino
*/
#include <SD.h>
@@ -1,6 +1,6 @@
/*
GPS Datalogger
Language: Arduino
Context: Arduino
*/
#include <SD.h>
@@ -1,6 +1,6 @@
/*
MIDI general instrument demo
Language: Arduino
Context: Arduino
Plays all the instruments in a General MIDI instrument bank
*/
@@ -1,6 +1,6 @@
/*
Stinger player
Language: Arduino
Context: Arduino
*/
#include <SoftwareSerial.h>
@@ -3,7 +3,7 @@
/*
Sharp GP2xx IR ranger reader
Language: Arduino
Context: Arduino
Reads the value from a Sharp GP2Y0A21 IR ranger and sends
it out serially.
@@ -1,6 +1,6 @@
/*
SD card writer
Language: Arduino
Context: Arduino
*/
#include <SD.h>
@@ -1,12 +1,12 @@
/*
Serial RGB LED controller
language: Wiring/Arduino
Context: Arduino
Controls an RGB LED whose R, G and B legs are
connected to pins 11, 9, and 10, respectively.
To control it, type 'r', 'g', or 'b' followed by
the numberals 0 through 9. Each LED can be set at a brightness level
the numerals 0 through 9. Each LED can be set at a brightness level
from 0 to 9.
created 19 July 2010
@@ -1,6 +1,6 @@
/*
Serial RGB LED controller test
language: Wiring/Arduino
Context: Arduino
created 19 July 2010
by Tom Igoe
@@ -1,6 +1,6 @@
/*
Monski Pong
Language: Processing
Context: Processing
Plays monski pong!
Expects a comma-separated serial string of sensor values :
@@ -1,6 +1,6 @@
/*
Monski Pong with handshaking
Language: Processing
Context: Processing
Plays monski pong!
@@ -1,6 +1,6 @@
/*
Sensor Reader
Language: Wiring/Arduino
Context: Arduino
Reads two analog inputs and two digital inputs and outputs
their values.
@@ -1,6 +1,6 @@
/*
Sensor Reader
Language: Wiring/Arduino
Context: Arduino
Reads two analog inputs and two digital inputs and outputs
their values.
@@ -1,6 +1,6 @@
/*
Serial String Reader
Language: Processing
Context: Processing
reads in a string of characters from a serial port
until it gets a linefeed (ASCII 10).
@@ -1,7 +1,7 @@
<?php
/*
Age checker
Language: PHP
Context: PHP
Expects two parameters from the HTTP request:
name (a text string)
@@ -1,6 +1,6 @@
<?php
/* Date page
Language: PHP
Context: PHP
Prints the date. */
// get the date, and format it:
@@ -1,7 +1,7 @@
<?php
/*
Parameter reader
Language: PHP
Context: PHP
Prints any parameters sent in using an HTTP GET command.
*/
@@ -1,7 +1,7 @@
<?
/*
mailer
Language: PHP
Context: PHP
sends an email.
*/
@@ -1,6 +1,6 @@
/*
Analog sensor reader
Language: Arduino/Wiring
Context: Arduino/Wiring
Reads an analog input on Analog in 0, prints the result
as an ASCII-formatted decimal value.
@@ -1,6 +1,6 @@
/**
Image capture and upload
language: Processing
Context: Processing
*/
import processing.video.*; // import the video library
Capture myCam; // the camera
@@ -1,6 +1,6 @@
/*
Serial String Reader
Language: Processing
Context: Processing
Reads in a string of characters until it gets a linefeed (ASCII 10).
Then converts the string into a number.
@@ -1,6 +1,6 @@
/**
Image capture and upload
language: Processing
Context: Processing
created 2 Oct 2010
modified: 14 Nov 2010
@@ -1,6 +1,6 @@
/*
Cat webcam uploader/emailer
Language: Processing
Context: Processing
takes a webcam image continually, uploads it, and
mails you when it receives a serial string above a given value
@@ -1,6 +1,6 @@
/**
Image capture and upload
language: Processing
Context: Processing
created 2 Oct 2010
modified: 9 Oct 2010
@@ -1,6 +1,6 @@
/**
Image capture and upload
language: Processing
Context: Processing
*/
import processing.video.*; // import the video library
Capture myCam; // the camera
@@ -1,6 +1,6 @@
/*
Serial String Reader
Language: Processing
Context: Processing
Reads in a string of characters until it gets a linefeed (ASCII 10).
Then converts the string into a number.
@@ -1,6 +1,6 @@
/*
Serial String Reader
Language: Processing
Context: Processing
Reads in a string of characters until it gets a linefeed (ASCII 10).
Then converts the string into a number.
@@ -1,7 +1,7 @@
<?php
/*
Mail sender
Language: PHP
Context: PHP
Sends an email if sensorValue is above a threshold value.
*/
@@ -1,5 +1,5 @@
/* DHCP
Language: Arduino
Context: Arduino
*/
#include <SPI.h>
#include <Ethernet.h>
@@ -1,6 +1,6 @@
/*
Serial-to-ethernet HTTP request tester
Language: Processing
Context: Processing
*/
// include the serial library
@@ -1,6 +1,6 @@
/*
Serial To Ethenet
Language: Wiring/Arduino
Context: Arduino
*/
@@ -1,6 +1,6 @@
/*
Serial To Ethenet
Language: Wiring/Arduino
Context: Arduino
*/
@@ -1,6 +1,6 @@
/*
Test Server Program
Language: Processing
Context: Processing
Creates a server that listens for clients and prints
what they say. It also sends the last client anything that's
@@ -1,6 +1,6 @@
/*
RGB Web Server
Language: Arduino
Context: Arduino
*/
Oops, something went wrong.

0 comments on commit 5789f93

Please sign in to comment.