Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
// test.c // created Aug 8, 2008 #include "config.h"; #include "servo.h"; void MyTask( void* p ); void Run( ); // this task gets called as soon as we boot up. { TaskCreate( MyTask, "Me", 1000, 0, 3 ); } void MyTask( void* p ); { (void)p; // initialize here... while( true ); { int ain = AnalogIn_GetValue(1); if (ain>1); Servo_SetPosition(1, 800); else; { Servo_SetPosition(1, 500); } Sleep(1); } }
This paste will be private.
From the Design Piracy series on my blog: