View Single Post
Old 02-12-2020, 07:10 PM   #6521
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 11,184
Default

Quote:
Originally Posted by Funkybot View Post
Sorry, fixed them. One says GoZone Pan|. The other now says GoZone Pan. No pipe in the latter.
Here's the question you need to ask -- do you want to GoZone Pan -- no -- there is no Zone named Pan -- there are Zones named Pan1, Pan2, etc.

How did Zones Pan1, Pan2, etc. come into existence ?

That's what the "|1-8" does.

It instructs CSI to make 8 Zones -- it replaces the | character with a number (1,2,3,4,5,6,7,8) at each and every location in the Zone..

It's just a shorthand way of generating a bunch of Zones.

Example:
Code:
Zone "Pan1"
	TrackNavigator
	Rotary1 	TrackPan "0"
	DisplayUpper1	TrackPanDisplay
	RotaryPush1 	GoZone PanWidth1
ZoneEnd

Zone "Pan2"
	TrackNavigator
	Rotary2 	TrackPan "0"
	DisplayUpper2	TrackPanDisplay
	RotaryPush2 	GoZone PanWidth2
ZoneEnd


etc.

Hopefully it makes sense now -- see how you use the pipe character to cut down error prone repetitious typing ?

If not, ask away
__________________
To install you need the CSI Software and Support Files
For installation instructions and documentation see the Wiki
Donate -- via PayPal to waddingtongeoff@gmail.com

Last edited by Geoff Waddington; 02-12-2020 at 07:20 PM.
Geoff Waddington is offline   Reply With Quote