Advertisement
Guest User

Untitled

a guest
Aug 13th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using System.Net.Sockets;
  2. using System.Threading;
  3. using Microsoft.SPOT;
  4. using Microsoft.SPOT.Hardware;
  5. using SecretLabs.NETMF.Hardware;
  6. using SecretLabs.NETMF.Hardware.Netduino;
  7.  
  8. namespace NetduinoApplication2
  9. {
  10. public class Program
  11. {
  12. public static void Main()
  13. {
  14. Display led = new Display();
  15.  
  16. led.Mode("commonAnode");
  17.  
  18. while (true)
  19. {
  20. for (byte i = 0; i < 10; i++) // counts from 0-9
  21. {
  22. led.Write(i);
  23. Thread.Sleep(1000);
  24. }
  25. }
  26.  
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement