ptBR translations: docs/ptBR/adns9800.md

This commit is contained in:
AndersonTorres 2021-10-05 01:39:39 -03:00
parent fb34038911
commit 48ab6767e4

24
docs/ptBR/adns9800.md Normal file
View File

@ -0,0 +1,24 @@
# ADNS9800
Acrescente este módulo para controlar o sensor ótico ADNS9800.
```python
from kmk.modules.adns9800 import ADNS9800
keyboard.modules.append(ADNS9800(cs=board.GP0, sclk=board.GP2, miso=board.GP4, mosi=board.GP3, invert_y=True))
```
O firmware para este sensor deve ser obtido separadamente, e colocado em
`kmk\modules\adns9800_firmware.py`.
```python
firmware = (
b'\x03'
b'\xa6'
...
)
```
## Parâmetros do Construtor
ADNS9800(cs=*cs_pin*, sclk=*clock_pin*, miso=*miso_pin*, mosi=*mosi_pin*, invert_x=*False*, invert_y=*False*)