The London Hackspace bandwidth meter

Dependencies:   LPD8806 MODSERIAL mbed picojson

See:

Revision:
6:7e7b4c5d0ba6
Parent:
5:24172484b8c5
Child:
7:68a26efc1d02
--- a/main.cpp	Sun Oct 21 07:16:07 2012 +0000
+++ b/main.cpp	Sun Oct 21 07:20:24 2012 +0000
@@ -4,14 +4,6 @@
 #include "LPD8806.h"
 #include "vfd.h"
 
-/*
-#include "EthernetNetIf.h"
-#include "HTTPServer.h"
-
-EthernetNetIf eth;  
-HTTPServer svr;
-*/
-
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
 DigitalOut led3(LED3);
@@ -146,73 +138,6 @@
     strip_clear();
     strip.show();
     pc.printf("post strip.show\r\n");
-
-//    wait_ms(500);
-//    emf_blue();
-//    strip.show();
-
-//    wait_ms(500);
-//    strip_clear();
-//    strip.show();
-
-//    wait_ms(500);
-//    emf_blue();
-//    strip.show();
-
-//    wait_ms(500);
-//    strip_clear();
-//    strip.show();
-
-//    vfd_init();
-
-    /* print our mac address & ip (when/if we get it). */
-
-/*
-  EthernetErr ethErr = eth.setup();
-
-  if(ethErr)
-  {
-    printf("Error %d in setup.\n", ethErr);
-    return -1;
-  }
-  printf("Setup OK\n");
-//  printf("link: %d\r\n", eth.link());
-//  if (eth.link()) {
-//    eth.address(mad);
-//    printf("mymac:  %02X:%02X:%02X:%02X:%02X:%02X\r\n",
-//    mad[0], mad[1], mad[2], mad[3], mad[4], mad[5]);
-//  }
-  
-  svr.addHandler<SimpleHandler>("/"); //Default handler
-  svr.addHandler<SimpleHandler>("/hello");
-  svr.bind(80);
-  
-  printf("Listening...\n");
-    
-  Timer tm;
-  tm.start();
-  //Listen indefinitely
-  while(true)
-  {
-    Net::poll();
-    if(tm.read() > .5)
-    {
-//      vfd_data('.');
-      tm.start();
-    }
-  }
-*/
-
-/*    if (ret != 0) {
-        sprintf(buf, "unable to get ip address!");
-        printf("%s\r\n", buf);
-        send_text(buf);
-    } else {
-        ret = sprintf(buf, "IP Address is %s", eth.getIPAddress());
-        printf("%s : %d\r\n", buf, ret);
-        send_text(buf);
-    }*/
-//    eth.disconnect();
     
     int tmp = 0;
     bool changed = false;
@@ -372,16 +297,5 @@
             strip.show();
             changed = false;
         }
-
-//        int size = eth.receive();
-/*        if(size > 0) {
-            eth.read(buf, size);
-            printf("Destination:  %02X:%02X:%02X:%02X:%02X:%02X\r\n",
-                    buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
-            printf("Source: %02X:%02X:%02X:%02X:%02X:%02X\r\n",
-                    buf[6], buf[7], buf[8], buf[9], buf[10], buf[11]);
-            printf("Size: %d\r\n", size);
-        }*/
-
     }
 }