INPORT: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 October 2023

  • curprev 19:2219:22, 6 October 2023‎ Benryves talk contribs‎ 559 bytes +559‎ Created page with "== Syntax == INPORT == Description == The function INPORT returns the current ‘value’ of all digital sensors as a single number. Each digital sensor has a unique ‘value’ as shown below: * SENSOR 0 = 1 when it is on. * SENSOR 1 = 2 * SENSOR 2 = 4 * SENSOR 3 = 8 * SENSOR 4 = 16 * SENSOR 5 = 32 * SENSOR 6 = 64 * SENSOR 7 = 128 So if SENSORS 0,3 and 5 are ‘ON’ INPORT will return 41 (1+8+32) == Example == IF INPORT = 255 THEN PRINT "All sensors are on" ==..."