Cov txheej txheem:

Kev txhim kho Cov Ntawv Thov Siv GPIO Pins ntawm DragonBoard 410c Nrog Android thiab Linux Cov Txheej Txheem Ua Haujlwm: 6 Cov Kauj Ruam
Kev txhim kho Cov Ntawv Thov Siv GPIO Pins ntawm DragonBoard 410c Nrog Android thiab Linux Cov Txheej Txheem Ua Haujlwm: 6 Cov Kauj Ruam

Video: Kev txhim kho Cov Ntawv Thov Siv GPIO Pins ntawm DragonBoard 410c Nrog Android thiab Linux Cov Txheej Txheem Ua Haujlwm: 6 Cov Kauj Ruam

Video: Kev txhim kho Cov Ntawv Thov Siv GPIO Pins ntawm DragonBoard 410c Nrog Android thiab Linux Cov Txheej Txheem Ua Haujlwm: 6 Cov Kauj Ruam
Video: ICU Kub Vaj - Leej Twg Hais Cia (Cover Video) Hmong Song 2023 2024, Kaum ib hlis
Anonim
Kev Txhim Kho Cov Ntawv Thov Siv GPIO Pins ntawm DragonBoard 410c Nrog Android thiab Linux Cov Txheej Txheem Ua Haujlwm
Kev Txhim Kho Cov Ntawv Thov Siv GPIO Pins ntawm DragonBoard 410c Nrog Android thiab Linux Cov Txheej Txheem Ua Haujlwm

Lub hom phiaj ntawm qhov kev qhia no yog los qhia cov ntaub ntawv xav tau los tsim daim ntawv thov siv GPIO tus pin ntawm DragonBoard 410c kev nthuav dav qis.

Cov ntawv qhia no nthuav qhia cov ntaub ntawv txhawm rau txhim kho daim ntawv thov siv GPIO pins nrog SYS ntawm Android thiab Debian kev ua haujlwm.

NCO TSEG:

Cov kab ntawv no muaj cov ntaub ntawv hais txog kev nthuav dav nrawm ntawm DragonBoard 410c.

Kauj Ruam 1: Kuaj Pins rau Tus Txheej Txheem Ua Haujlwm

Kuaj Pins rau Kev Ua Haujlwm
Kuaj Pins rau Kev Ua Haujlwm
  • Rau txhua lub kaw lus ua haujlwm muaj kev qhia tshwj xeeb rau qhov qis qis nthuav dav pins;
  • Tus pin taw qhia rau txhua qhov kev ua haujlwm tau pom nyob hauv 96boards cov ntaub ntawv rau DragonBoard 410c.

Kauj Ruam 2: Coj ntawm DragonBoard 410c

Coj ntawm DragonBoard 410c
Coj ntawm DragonBoard 410c

Xav txog Led txuas rau tus pin 23.

Kauj Ruam 3: Kuaj Pins - Android

Kuaj Pins - Android
Kuaj Pins - Android

Hauv Android, Tus Pin 23 yog GPIO938.

Kauj ruam 4: Nkag mus rau GPIO Via SYS ntawm Android

Nkag mus rau/sys/class/gpio directory:

cd/sys/chav kawm/gpio

Xav txog Led ntawm tus pin 23:

# ncha 938> xa tawm

# cd gpio938

Pab kom Led ua cov zis:

# echo "out"> kev coj

Qhib / tua Led:

# echo "1"> tus nqi

# echo "0"> tus nqi

Kauj Ruam 5: Kuaj Pins - Debian GNU/Linux

Kuaj Pins - Debian GNU/Linux
Kuaj Pins - Debian GNU/Linux

Ntawm Debian GNU/Linux, Tus Pin 23 yog GPIO36.

Kauj Ruam 6: Nkag mus rau GPIO Via SYS ntawm Debian GNU/Linux

Nkag mus rau/sys/class/gpio directory:

cd/sys/chav kawm/gpio

Xav txog Led ntawm tus pin 23:

# ncha 36> xa tawm

# cd gpio36

Pab kom Led ua cov zis:

# echo "out"> kev coj

Qhib / tua Led:

# echo "1"> tus nqi

# echo "0"> tus nqi

Pom zoo: