Dynamic pin reassignment during runtime

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
MichaelL
Posts: 16
Joined: Fri Jan 16, 2009 3:52 pm
Location: Germany

Dynamic pin reassignment during runtime

Post by MichaelL » Tue Nov 18, 2014 8:40 am

Hello, input and/or output pins need to be defined when some modules are included in a project. Definition of pins is done before compilation. I would need to reassign those pins during runtime. Is that possible and how?

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: Dynamic pin reassignment during runtime

Post by David Barker » Tue Nov 18, 2014 9:10 am

The "shift.bas" library does exactly that - take a look at SetInput(), SetOutput(), In() and Out() for example code.

MichaelL
Posts: 16
Joined: Fri Jan 16, 2009 3:52 pm
Location: Germany

Re: Dynamic pin reassignment during runtime

Post by MichaelL » Tue Nov 18, 2014 9:41 am

Thanks!

Post Reply