So the problem is related with the functioning of the button that is linked with the interrupt 0 and when it is pressed it gets the uC out from no matter what its doing to handle the time recording in the interrupt function that is the clickReader() and then it is supposed to change the length of the LED strip based on the time difference between the button presses which it does but after the code changes the length and completes one iteration of animation movement until the end of the strip the uC restarts????
I have used this board in a big project and have to say that is a very very good setup alltogether , I did a lot lot of research before getting this tool basically you should lookout for the peripherals available, core clocking, number of GPIO etc and etc all were more than 8bitters used on our Arduino. Drawbacks are 2: 1) Not that much documentation on mBed especially the KL25z for example I had to dig deep and mod the GLCD library to print left side on the left side instead of priting the left side of screen on right side!
2) i2c problems were there at the beginning dont know today!
3) mBed RTOS not working on it however you can build the official freescale one.
I think all these problems are because its new on mBed and those people there like Samuel Mokrani are working very hard to complete everything.
Also moving to your own PCB is very easy and possible too! all in all I love it for about the same cost of an ATmega328p you get a KL25z128VLK4 which is no match as its too powerful, I'm very happy with it.
Yes, I actually mean't that for example you travel in a train and other train passes through you in opposite direction and still another train passes you in the same direction in which the train you are travelling is moving, there is bound to be difference in the visuals of these both passing trains?