Use touchbuttons to activate different sets of code - PropBASIC + P8X34A QuickStart
JakobLover
Posts: 5
Hi! I'm relatively new to programming and especially to my new Parallax Propeller P8X34A QuickStart board. I'm building a 5x5x5 LED cube controlled by this microcontroller, and I want to start different sets of code by touching one of the buttons. For example... When you press the first touchbutton, it starts this set of code, but when you click the next button, you activate another animation... Can someone help me out? If you would be very kind, could you write the code for me, and put in "CODE GOES HERE" or something? That would be awesome.
Remember that it's PropBASIC and not Spin!
Thanks in advance,
-Jakob
Remember that it's PropBASIC and not Spin!
Thanks in advance,
-Jakob
Comments
Jakob, Welcome to the forum. Sorry, I cann't help with the PropBASIC but if you change your mind and are looking for some Spin code to do this, I've probably got a program that would be easy to modify to do what you want.
Hopefully someone has a PropBASIC version of Beau's pad demo.
Here's a demo program. I procrastinated some other projects and heavily documented this program.
Here's what it looks like using the "Documentation" feature of the Propeller Tool.
Hopefully I explained enough with comments for it to make sense.
I tried to show you how to start methods with the buttons and also how to end a method (most by pressing pad 0).
Let me know if you need part of it explained more.