In the Chapter 1 Simple Serial code as published in the book says:

// after a quarter of a second, turn the LED on:

It should say

// after a half of a second, turn the LED on:

Thanks to Shigeru Kobayashi for catching it.

Triangle Drawing Program

 Chapter 1, Processing  Comments Off on Triangle Drawing Program
Oct 072007
 
/*
  Triangle drawing program
  Language: Processing
  Draws a triangle whenever the mouse button is not pressed. 
  Erases when the mouse button is pressed.
*/

Continue reading »

Date Printer

 Chapter 1, PHP  Comments Off on Date Printer
Oct 072007
 
/*
Date printer
Language: PHP
Prints the date and time in an HTML page.

*/

Continue reading »

Blink

 Arduino/Wiring, Chapter 1  Comments Off on Blink
Oct 072007
 
/*
  Blink (aka Hello World! In Arduino/Wiring):
  Language: Arduino/Wiring

  Blinks an LED attached to pin 13 every half second.
  Connections:   
    Pin 13:  + leg of an LED (- leg goes to ground)
*/

Continue reading »

Hello World! in PHP

 Chapter 1, PHP  Comments Off on Hello World! in PHP
Oct 072007
 
<?php
/*
Hello World!
Language: PHP
Prints out a “Hello World!” HTML page
*/


echo "<html><head></head><body>\n";
echo "hello world!\n";
echo "</body></html>\n";
?> 

Hello World! in Processing

 Chapter 1, Processing  Comments Off on Hello World! in Processing
Oct 072007
 
/*
Language: Processing
Prints out “Hello World!”
*/

println("Hello World!\n");

Simple Serial

 Arduino/Wiring, Chapter 1  Comments Off on Simple Serial
Oct 072007
 
/*  
	Simple Serial
	Language: Arduino/Wiring
	Listens for an incoming serial byte, adds one to the byte
	and sends the result back out serially.  Also blinks an LED
	on pin 13 every second.
*/

Continue reading »

© 2012 Making Things Talk Suffusion theme by Sayontan Sinha