Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## this really isnt Java, but it shares similar syntax int ledPin = 9; int val; void setup() { Serial.begin( 9600 ); pinMode( ledPin, OUTPUT ); } void loop() { if( Serial.available() ) { val = Serial.read(); analogWrite( ledPin, val ); } }
This paste will be private.
From the Design Piracy series on my blog: