Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.36 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Basics of C   with Arduino
  2. int main()    {
  3.     while (1)    {
  4.         bool * out_pin = /* Whatever that memory address was for that pin */;
  5.         *out_pin = 1;
  6.         // Some sort of sleep function? (I only know of "windows.h"'s "Sleep" function)
  7.         *out_pin = 0;
  8.     }
  9.     return 0; // Kind of unneeded, I suppose, but probably compiler errors otherwise.
  10. }