PinePhone: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
→Front LED: add GPIO register detail |
→Small items: add vibration motor register |
||
Line 193:
=== Small items ===
==== Front LED and rumble motor ====
Simple on/off switches (GPIOs) controlled by software.
To configure the LED pins for generic output, write 0xXXX111XX to address 0x01C20874. The X are bits that are irrelevant to LEDs. Default value for each X is 7, so write 0x77711177 if you're only using the LEDs and nothing else on this port. To configure the motor pin, write 0xXXXXX1XX to address 0x01C2086C. Then
Note the R/G/B channel order is mislabeled in the schematic (and in two different ways!) - the order below was actually tested.
Line 209:
|-
| Blue || 0x00040000 || PD18
|-
| Rumble motor || 0x00000004 || PD2
|}
==== Sensors ====
Line 233 ⟶ 236:
The power key goes to a signal called PWRON on the AXP803.
=== 4G cellular modem ===
|