Updated MCP23008 MCP23017 (markdown)

andrethomas 2018-09-11 07:46:23 +02:00
parent 670b615794
commit a23efed727
1 changed files with 15 additions and 12 deletions

@ -268,29 +268,32 @@ Where x is the number of 50ms cycles (between 0 and 20) which will be skipped be
For example, lets assume you only want the interrupt polling to occur every 500ms (i.e. twice per second) you could do command:
`sensor29 intpri,10 // interrupt polled every 10*50 milliseconds, approximated`
```
sensor29 intpri,10 // interrupt polled every 10*50 milliseconds, approximated
```
### ADVANCED FUNCTION #2 - INTERRUPT DEFFER (INTDEF)
Syntax:
`sensor29 intdef,pin // Will provide current setting of pin`
`sensor29 intdef,pin,x // Will set new deffer value to x (0-15)`
```
sensor29 intdef,pin // Will provide current setting of pin
sensor29 intdef,pin,x // Will set new deffer value to x (0-15)
```
### ADVANCED FUNCTION #3 - INTERRUPT TIMER (INTTIMER)
Syntax:
`sensor29 inttimer // Will provide the current amount of seconds for timer`
`sensor29 inttimer,x // Allows setting number of seconds (x) for timer interval`
```
sensor29 inttimer // Will provide the current amount of seconds for timer
sensor29 inttimer,x // Allows setting number of seconds (x) for timer interval
```
### ADVANCED FUNCTION #4 - INTERRUPT COUNTER ENABLE (INTCNT)
Syntax:
`sensor29 intcnt,pin // Readback current setting of interrupt counting for pin (0=OFF/1=ON)`
`sensor29 intcnt,pin,x // Enable/Disable interrupt counting for pin (x=0=OFF,x=1=ON)`
```
sensor29 intcnt,pin // Readback current setting of interrupt counting for pin (0=OFF/1=ON)
sensor29 intcnt,pin,x // Enable/Disable interrupt counting for pin (x=0=OFF,x=1=ON)
```
***
### OUTPUT FUNCTIONS (PIN MODES 5 AND 6)