Skip to content

Conversation

@KINGDOMWARE
Copy link

@KINGDOMWARE KINGDOMWARE commented Nov 3, 2021

Hello, I would like to know how to use GPIOs in Android system. The final goal is to make some APK (using Android Studio etc) to control GPIO`s

tobetter and others added 30 commits July 17, 2019 12:17
- android doesn't support pthread_cancel. so use pthread_kill instead
  pthread_cacnel.
- In some case, ISR callback function pointer can be null pointer untill pthread
  is not killed. So add mutext to avoid this problem and exit it.

Signed-off-by: Luke Go <[email protected]>
    - pinPass value has a possibilit to wrong pinvalue pass.

Signed-off-by: Luke Go <[email protected]>
Servo motors are typically controlled 1000 us ~ 2000 us pulse widths.
So default PWM period was set to 2500us.
To avoid unforeseen collision, add static keyword to the functions.
And did some codes clean-up to fit into the exist code style.

Signed-off-by: Joshua Yang <[email protected]>
wiringPi did not support device selection.
When adding an SPI device or  SPI CS, a user did not use wiringPiSPI.h.

If using wiringPiSPISetupInterface, a user can select an SPI device.
wiringPiI2CReadBlock:
S Addr Wr [A] reg [A]
           S Addr Rd [A] [buff] A [buff] A ... A [buff] NA P

wiringPiI2CWriteBlock:
S Addr Wr [A] reg [A] buff [A] buff [A] ... [A] buff [A] P
ex)
pinMode(pin, INPUT_PULLUP);
pinMode(pin, INPUT_PULLDOWN);
The PWM default clock/range settings
  conflict with Android things settings.
Signed-off-by: Yang Deokgyu <[email protected]>
Signed-off-by: Yang Deokgyu <[email protected]>
how2flow and others added 29 commits August 17, 2023 08:24
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I2e5e4a0c992aa53df5b1ee54e3a13095f9fa8364
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I67a7626e6a258f9116608e6763e786389565245f
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: Ib134094f7a35298b1274a60fbfc56a07a14ed965
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: Ic7e72e6894df43ad62e00b9200c23df6b984c54d
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I48b505ea29ac10d1d9acbaed0ef99fc091ecd270
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I7db24f9325f3c0a85b2abf379a8183ef63144f5f
The hardware pwm is used as the sys node.

Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I01181a32aba992a11f41176b485f5472872f84a2
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I4a0f0b571f3bf703940e51859eedd8d848ad169e
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I2f8bc62cf0b7bbde707b10e36e39e3a5a5c3045c
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: Ie0eefc480949dfb65ff58c1c2ec2ab0990a0d421
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I4ed61b46ade6b8a2f702a8669b33d83840d86270
… for easy maintenance

Signed-off-by: Steve Jeong <[email protected]>
Change-Id: Ieef76b76baa387454a174332168bd20b6d3e659b
gpiod is supported through circuitpython platform.
odroid-wiringPi will operate faster gpio control as an advantage, so discard the gpiod.

Signed-off-by: Steve Jeong <[email protected]>
Change-Id: Ibce3c53a1e0c1b6ad1c066b0966ec0d0dcb07e58
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I6756baefda6a49945fbf03790e4a0810164f9064
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I4e803c6410efb4924473b17e6857848ee7edbe0a
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I17b12bf8762a5beb1ab149074ab27eaac4234967
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: Ic3bf1cc6e2f0b8d46a9ff22c966780c634076e16
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I379018ae50e6c2c43f0e53d9bc5986a2090d7818
Signed-off-by: xiane <[email protected]>
Change-Id: I62c2c7ae7cc1458fbccbac260374f0f1251b209a
Signed-off-by: Steve Jeong <[email protected]>
Change-Id: I7a4daa82410cc030884bf9468762b2cc502955bb
Change-Id: Id9839e55cdc557e608af6f29d831d8c1bd8de9fa
- Rev. 20250106
- Warning: Use only GPIO functions.

Signed-off-by: YoungSoo Shin <[email protected]>
Change-Id: I02623a284c047c6b5e485d28c9714ed8e65025df
- Rev. 20250106

Signed-off-by: YoungSoo Shin <[email protected]>
Change-Id: I68581313c6bfe23b870380547e59249075aba3d0
Signed-off-by: YoungSoo Shin <[email protected]>
Change-Id: I42bf4afda5a5cb6fc3996c12cb1cb192e58157d6
Signed-off-by: YoungSoo Shin <[email protected]>
Change-Id: Ic8b90557cf9585759559d8869590df0233ba8280
Change-Id: I1f91f06f5c6ccad767c6219fcbb190206fd571fe
Signed-off-by: YoungSoo Shin <[email protected]>
Change-Id: I64840ede68cd71966d8696ccccf091e88e16f9b2
Signed-off-by: YoungSoo Shin <[email protected]>
Change-Id: I6f7c39567e56e5558ab7cd16c2efe21bb29dc21f
(cherry picked from commit 45e673d119e53605ca973ced49332d1a47131f06)
Signed-off-by: YoungSoo Shin <[email protected]>
Change-Id: I73553adfbe39f81b65d8d92ad83b42ab0007f408
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants