In SX Microcontrollers, SX/B Compiler and SX-Key Tool, DigitalDj wrote: Ok that makes sense, yes i understand nested loops but i just didn't know why peter used 2 loops. That's why i thought one was on time and one was off time. Would it have been possible to have just used one loop? I will try it and see. I'm just rusty on programming. I used to be pretty decent at programming back in the Commodore and TRS80 computer days. I used to be able to write a program at work and take it home and plug it into the computer and magic it worked. I'm just a little rusty and basic has changed a little. At that time i wrote 3 programs i was really proud of, one was a program that used 3 loops and if statements that figured out a farmers delima. The farmer had $100.00 and needed to buy 100 animals the chickens were .50 each the ducks i believe were $10 each and the sheep were $15 each i was able to write the fastest program in our club. One of the other programs was a battle ship game before you could play them over a modem to another computer. I wrote the program but the neat thing was the grids and placing the ships for playing against the computer. The hard thing was making sure none of the ships got placed on top of each other in the grid of coarse this was for the computer to do the player placed his own ships but if tried to do the same thing it would tell you it was not possible. The 3rd program was a christams music player with song menus and graghics(really cool). Oh the last programming i ever did was with gwbasic where i wrote a program when i was a machinist to figure the depth of a 45deg cut for a given width and this is not using a 45deg cutter. What i found of coarse this is trig calculations that the depth of cut has a constant of .707 i think it was. So then i was able to make a chart to speed up my maching abilities. I was eventually going to do the same thing with compound angles and never got a chance. Sorry not trying to prove anything here just thought you might get a kick out of the early computer days. I'll be alright once i get back in the swing. Kevin ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=118695#m120880 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)