This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:pin_configure [2017/05/19 14:35] jeff |
uphp:functions:pin_configure [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
< | < | ||
- | Configure an <tooltip title=" | + | Configure an <tooltip title=" |
====Description==== | ====Description==== | ||
Line 19: | Line 19: | ||
</ | </ | ||
- | This function will change settings for certain pins on the WattmonPRO and MEGA. This is actually not to be used unless you know what you are doing, because it may cause certain parts of the device to not function properly. | + | This function will change settings for certain pins on [[hardware: |
====Parameters==== | ====Parameters==== | ||
- | < | + | < |
^< | ^< | ||
|0 |VIN/A1 (PIN 2) |ANALOG|ANALOG/ | |0 |VIN/A1 (PIN 2) |ANALOG|ANALOG/ | ||
Line 43: | Line 43: | ||
^< | ^< | ||
- | |1 |OUTPUT (digital) | + | |1 |Digital Output| |
- | |2 |INPUT (digital) | + | |2 |Digital Input| |
- | |4 |ANALOG input | + | |4 |Analog Input| |
- | |16|COUNTER (digital input) | + | |16|Counter| |
< | < | ||
Line 61: | Line 61: | ||
====See Also==== | ====See Also==== | ||
- | [[pin_get()]] - Return the value of a digital input pin | + | [[pin_get()]] - Return the value of an <tooltip title=" |
- | [[pin_set()]] - Set a digital output to value (1 or 0) | + | [[pin_set()]] - Set a digital output to value 1 or 0 |
[[adc_read()]] - Read an onboard <tooltip title=" | [[adc_read()]] - Read an onboard <tooltip title=" | ||