meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
adv:apireference [2023/12/22 20:15] – document the Direct Pin Access commands lord_nightmare | adv:apireference [2024/09/28 20:56] (current) – david.rysk | ||
---|---|---|---|
Line 62: | Line 62: | ||
**?idlog** – returns a text string that describes the process used to determine the type of drive that is connected. Used to debug when drives aren’t recognized properly. | **?idlog** – returns a text string that describes the process used to determine the type of drive that is connected. Used to debug when drives aren’t recognized properly. | ||
+ | |||
+ | **force: | ||
+ | Should not be necessary outside of testing and debugging as autodetection will normally detect the drive – see the documentation for **connect** and **?kind**. | ||
**?safe** – returns “+” or “-” depending on the position of the Safe switch on the front of the Applesauce | **?safe** – returns “+” or “-” depending on the position of the Safe switch on the front of the Applesauce | ||
Line 164: | Line 167: | ||
**sync:?** – returns “+” or “-” depending on whether sync is turned on | **sync:?** – returns “+” or “-” depending on whether sync is turned on | ||
- | **sync:? | + | **sync:? |
**sync:? | **sync:? | ||
Line 228: | Line 231: | ||
==== Direct Pin Access ==== | ==== Direct Pin Access ==== | ||
+ | |||
+ | These are primarily meant for hardware troubleshooting and are subject to change. | ||
**pins: | **pins: | ||
Line 233: | Line 238: | ||
**pins: | **pins: | ||
- | **pins:? | + | **pins:? |
- | **n** below is the pin number output from the pins:?map command. | + | **n** below is the pin number output from the **pins:?map** command. |
- | **pins:i n** – sets pin n to input mode | + | **pins:i n** – sets pin **n** to input mode |
- | **pins:o n** – sets pin n to output mode | + | **pins:o n** – sets pin **n** to output mode |
- | **pins:r n** – returns “+” or “-” depending on the state of pin n | + | **pins:r n** – returns “+” or “-” depending on the state of pin **n** |
- | **pins:wh n** – writes logic level high to pin n | + | **pins:wh n** – writes logic level high to pin **n** |
- | **pins:wl n** – writes logic level low to pin n | + | **pins:wl n** – writes logic level low to pin **n** |