Lab 1 Report
Udayanga Wickramasinghe
uswickra@umail.iu.edu

1. Results
==============

Log into the serial console following will be displayed :

************************************************
*****         Simple LED Console          ******
************************************************
* A Console Application to manage LED Digital  *
* ouput for ARM cortex M4 - LPC1768, covered by*
* Apache General Public License                *
************************************************
* Author : U.S. Wickramasinghe                 *
* Corporation : Indiana University             *
* Please email uswickra@umail.iu.edu for source*
*                                              *
************************************************
* type 'help 1' for available usage.           *
************************************************

p542%



Turning on LEDs
================

    Type LON <led-num> to turn on a designated LED . If success will display a ‘OK’  message  and will turn on the designated  LED number

Ie:-
//turns on LED 1
        p542% LON 1
        OK

//turns on LED 2
        p542% LON 2
        OK



Turning off LEDs
=================        

    Type LOF <led-num> to turn off a designated LED . If success will display a ‘OK’  message  and will turn off the designated  LED number

Ie:-
//turns off LED 1
        p542% LOF 1
        OK

//turns off LED 3
        p542% LOF 3
        OK



Console Help
================

    Type “help 1”  to display usage

Ie:-
Usage :
EON <led_num>   :
        Turn on led indicated by <led_num>
EOF <led_num>   :
        Turn off led indicated by <led_num>
q               :  
        Exit program


        2. Difficulties
        ===================

        Difficulties I had mainly was on design of the serial console. Rather than implementing  it on a adhoc manner I focused on a
        good console design which I should be able to plug new console commands more easily.  With the current design users just have to
        implement ‘Cmd’ interface to  include as a new command. However it took some time to design this properly.

        Difficult to debug applications apart from serial out logs, I am not sure whether there are any debugging facilities with mbed.

        Although it was cool to have embed online tools , it was difficult to follow the programming API with the online embed IDE.
        In my opinion it has some major usability issues as well which has to be addressed , I was rather thinking of having SDK downloaded (which I could not do yet) and implement lab1 on a local tool.

        
        3. Things I Learnt
        ==================

        Learnt how to control Digital Out pins with LPC1768 with embed and also API related to analog/digital stream handling.
        Also had good insight into operations related to console design specifically special character handling such as CR and backspace.
