This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
uphp:functions:pin_set [2017/05/13 11:39] admin created |
uphp:functions:pin_set [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | pin_set(int $pin_index, int $value) | + | ======pin_set====== |
- | Sets a digital output | + | < |
- | Refer to [[pin_configure()]] for the list of available pins. | + | Set a digital output |
- | If the pin is not configured as a digital output this does nothing. | + | ====Description==== |
+ | |||
+ | <well size=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | </ | ||
+ | |||
+ | ====Parameters==== | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | ====Return Values==== | ||
+ | |||
+ | None | ||
+ | |||
+ | ====See Also==== | ||
+ | |||
+ | [[pin_configure()]] - Configure an <tooltip title=" | ||
+ | |||
+ | [[pin_get()]] - Return the value of an <tooltip title=" | ||
+ | |||
+ | [[adc_read()]] - Read an onboard <tooltip title=" | ||
- | $value can be 0 or 1 to switch off or on the digital output |