Differences

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

Link to this comparison view

Both sides previous revision Previous revision
component:signals [2017/12/19 01:18]
payonel
component:signals [2018/03/15 01:33] (current)
payonel
Line 76: Line 76:
 ---------------------------- ----------------------------
  
-- `redstone_changed(address:​ string, side: number, oldValue: number, newValue: number)` ​  +- `redstone_changed(address:​ string, side: number, oldValue: number, newValue: number[, color: number])`   
-  This signal is queued by [[component:​redstone|redstone components]] when an incoming signal changes. The address is either that of the [[block:​redstone_io|Redstone I/O block]] or that of the computer with the [[item:​redstone_card|redstone card]] that generated the signal. The side is one of the [[api:​sides|sides]] constants and indicates on which side the signal changed. This is relative to the container of the component, so for computers and robots this depends on which way they are facing. For Redstone I/O blocks this is always the absolute side. +  This signal is queued by [[component:​redstone|redstone components]] when an incoming signal changes. The address is either that of the [[block:​redstone_io|Redstone I/O block]] or that of the computer with the [[item:​redstone_card|redstone card]] that generated the signal. The side is one of the [[api:​sides|sides]] constants and indicates on which side the signal changed. This is relative to the container of the component, so for computers and robots this depends on which way they are facing. For Redstone I/O blocks this is always the absolute side. The color is only included with bundled inputs, referring to which color of input changed.
  
 Note: There is no indication of the bundle/​channel number from T2 cards or the I/O Block. [[https://​github.com/​MightyPirates/​OpenComputers/​issues/​1385|GH issue]] Note: There is no indication of the bundle/​channel number from T2 cards or the I/O Block. [[https://​github.com/​MightyPirates/​OpenComputers/​issues/​1385|GH issue]]