Difference between revisions of "Eln Computer Probe"

From Electrical Age
Jump to: navigation, search
m
m
Line 3: Line 3:
 
The functions it provides do not contain an internal API, so they will be defined here:
 
The functions it provides do not contain an internal API, so they will be defined here:
  
* signalSetDir -
+
* '''signalSetDir()''' -
* signalGetIn -
+
* '''signalGetIn()''' -
* wirelessGet -
+
* '''wirelessGet()''' -
* wirelessSet -
+
* '''wirelessSet()''' -
* signalSetOut-
+
* '''signalSetOut()''' -
* wirelessRemoveAll -
+
* '''wirelessRemoveAll()''' -
* signalGetDir -
+
* '''signalGetDir()''' -
  
  
 
== Directions ==
 
== Directions ==
  
When a probe is placed, 6 sides will appear printed on the sides of the block. These always face the same way, no matter which direction you place the block in. These are used to control the previous functions, usually to specify which side to operate the function on.
+
When a probe is placed, 6 sides will appear printed on the sides of the block. These always face the same way, no matter which direction you place the block in. These are used to control the previous functions, usually to specify which side to operate the function on. Its naming structure is a reference to transistors, where P-type is considered positive and N-type is considered negative. The x and y refers to the co-ordinate value.
  
 
* XN - Faces West; its enum value is 0.
 
* XN - Faces West; its enum value is 0.

Revision as of 13:52, 6 January 2017

The Eln Computer Probe is a block which allows a computer to read and manipulate signals passing through it.

The functions it provides do not contain an internal API, so they will be defined here:

  • signalSetDir() -
  • signalGetIn() -
  • wirelessGet() -
  • wirelessSet() -
  • signalSetOut() -
  • wirelessRemoveAll() -
  • signalGetDir() -


Directions

When a probe is placed, 6 sides will appear printed on the sides of the block. These always face the same way, no matter which direction you place the block in. These are used to control the previous functions, usually to specify which side to operate the function on. Its naming structure is a reference to transistors, where P-type is considered positive and N-type is considered negative. The x and y refers to the co-ordinate value.

  • XN - Faces West; its enum value is 0.
  • XP - Faces East; its enum value is 1. (Shows backwards on the block)
  • YN - Faces Skyward; its enum value is 2. (Does not show on the block)
  • YP - Faces Ground; its enum value is 3. (Does not show up on block)
  • ZN - Faces North; its enum value is 4. (Shows backwards on the block)
  • ZP - Faces South; its enum value is 5.