Replies
#
21 Nov 2010
#
21 Nov 2010
#
22 Nov 2010
#
22 Nov 2010
#
22 Nov 2010
#
22 Nov 2010
#
23 Nov 2010 . Edited: 23 Nov 2010
#
23 Nov 2010
Please log in to post a reply.






I have been trying to get a user-defined LED display to run on the mbed. I know nothing about anything. And C++ For Dummies has been over my head and not supplying the answers.
What I have today runs nicely, but some light patterns are not being interpretted correctly.
The user writes an array made up of 4-digit values: e.g. 0110 or 1111. A zero represents one of the four LEDs off. A one represents one of the four LEDs on. The digit's position in the number equates to the positon of the LED in the 4-LED display.
Reading other posts this morning, it seems that I need to look into 'parsing' and 'formatting.' Something about '%d."
Any help will be appreciated.
The program is called LED11-Lightshow and a believe it is attached here.
LED11_Lightshow