CQ de AI2 Morse Code tutorial-use layouts instead of screens and Any component

139 views
Skip to first unread message

SteveJG

unread,
Mar 2, 2015, 11:28:23 AM3/2/15
to mitappinv...@googlegroups.com
Here is CQ de AI2 Morse Code -- a tutorial demonstrating a way to use layouts instead of screens and the Any components for Buttons. Use the app to learn Morse code. :)


Regards,
Steve

Abraham Getzler

unread,
Mar 2, 2015, 2:16:53 PM3/2/15
to mitappinv...@googlegroups.com
Nice tutorial!

I wonder if the Button4 (For number = 1 to 1 by 1) sequence could be tightened up?

ABG

SteveJG

unread,
Mar 2, 2015, 3:02:35 PM3/2/15
to mitappinv...@googlegroups.com
Thanks Abraham.   and yes, there could be slicker code in that routine (which produces a single Morse letter)     The Button4 routine could be eliminated from the app and no one would notice. :)    I was sleeping when I proofed it.  The for each number block (but not the code within it) should be eliminated and the "number" reference replaced with a Math 1 .  This code was originally the first try at sending a complete text string-which was the wrong approach.   For the moment, I'll just leave it as 'no harm' done, just a little egg in the face as the routine 'works' correctly.

--Steve
Reply all
Reply to author
Forward
0 new messages