PinePhone: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Immibis (talk | contribs)
→‎Front LED: add GPIO register detail
Immibis (talk | contribs)
→‎Small items: add vibration motor register
Line 193:
=== Small items ===
 
==== Front LED and rumble motor ====
 
Simple on/off switches (GPIOs) controlled by software.
A simple on/off per colour channel. However it's not clear which pin is which channel as the schematic shows them two different ways.
 
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 threefour of the bits in address 0x01C2087C control the LEDthese coloursfeatures - see below.
 
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.
 
==== Vibration motor ====
 
Vibration motor controlled by GPIO PD2. Motor and GPIO are both powered by DCDC1.
 
=== 4G cellular modem ===