meta data for this page
  •  

Differences

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

Link to this comparison view

Next revision
Previous revision
adv:apireference [2022/02/05 06:01] – created vintagetechadv:apireference [2024/09/28 20:56] (current) david.rysk
Line 1: Line 1:
- 
 ====== Making your own Applesauce Software ====== ====== Making your own Applesauce Software ======
  
Line 63: 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:5.25**, **force:3.5**, **force:pc** – forces Disk II 5.25", Apple 3.5", or PC drive mode, respectively.
 +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 165: Line 167:
 **sync:?** – returns “+” or “-” depending on whether sync is turned on **sync:?** – returns “+” or “-” depending on whether sync is turned on
  
-**sync:?speed** – will return the speed of the drive based on sync signal or index+**sync:?speed** – will repeatedly return the speed of the drive based on sync signal or index. Send text (e.g. **X**) to terminate.
  
 **sync:?stable** –  runs a lengthy test on the sync sensor to ensure that the sync signal is steady **sync:?stable** –  runs a lengthy test on the sync sensor to ensure that the sync signal is steady
Line 230: Line 232:
 ==== Direct Pin Access ==== ==== Direct Pin Access ====
  
 +These are primarily meant for hardware troubleshooting and are subject to change.
 +
 +**pins:connect** – enables the '245
  
-pins:?map+**pins:disconnect** – disables the '245
  
-pins:r+**pins:?map** – prints the current pin map (dependent on drive kind, see **?kind**)
  
-pins:wh+**n** below is the pin number output from the **pins:?map** command.
  
-pins:wl+**pins:i n** – sets pin **n** to input mode
  
-pins:i+**pins:o n** – sets pin **n** to output mode
  
-pins:o+**pins:r n** – returns “+” or “-” depending on the state of pin **n**
  
-pins:connect+**pins:wh n** – writes logic level high to pin **n**
  
-pins:disconnect+**pins:wl n** – writes logic level low to pin **n**