Announcement

Collapse
No announcement yet.

Input 0-based, Output 1-based

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Input 0-based, Output 1-based

    When I create outputs the first ID assigned is 0 but when I create inputs then the first ID assigned is 1. No big deal but why is that? Is maybe input 0 used for some special purposes?

    #2
    This is because the Array you look at in the sketch is 0 indexed and if I used 1 as the start it would allocate memory to position 0 that would never be used.

    Greig.
    Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
    X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
    Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
    Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
    Scripts =
    Various

    Comment


      #3
      Ok, got it.

      Comment

      Working...
      X