Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
component:redstone [2015/08/03 00:02]
gamax92 Fix colors api link
component:redstone [2015/08/29 17:51]
flying_lizard fixed a typo
Line 24: Line 24:
 - `setBundledOutput(side:​ number, color: number, value: number): number`  ​ - `setBundledOutput(side:​ number, color: number, value: number): number`  ​
   Like `setOutput`,​ but for bundled output, setting the value for the channel with the specified [[api:​colors|API/​Colors]].\\   Like `setOutput`,​ but for bundled output, setting the value for the channel with the specified [[api:​colors|API/​Colors]].\\
 +  //As of OC 1.3: only available on a tier two redstone card.//
 +- `setBundledOutput(side:​ number, values:​table):​boolean`  ​
 +  Shortcut to set the value of all colors at once. Expects a table with 16 fields, where the index corresponds with the number of the color as documented in [[api:​colors|API/​Colors]]. Always returns true.  ​
 +  //​Warning://​ By default, Lua starts indexing tables with 1, so when you enter something along the lines of {15,​0,​0,​[...],​0} it doesn'​t activate white as expected, but orange.  ​
 +  Manually set your indices to circumvent this.  ​
   //As of OC 1.3: only available on a tier two redstone card.//   //As of OC 1.3: only available on a tier two redstone card.//
 - `getWirelessInput():​number`  ​ - `getWirelessInput():​number`  ​