Difference between revisions of "AIR 020 Development"
From ESS-WIKI
(Created page with " == Tools == === Test Command === ==== '''GPIO Expander''' ==== JP5.1.0<br/> Test GPIO high/low<br/> 300px|air020gpio.png *GPIO0 (228) : gpio-419 (PN....") |
|||
Line 8: | Line 8: | ||
JP5.1.0<br/> Test GPIO high/low<br/> [[File:020gpio.jpg|300px|air020gpio.png]] | JP5.1.0<br/> Test GPIO high/low<br/> [[File:020gpio.jpg|300px|air020gpio.png]] | ||
− | *GPIO0 (228) : gpio-419 (PN.01) | + | *GPIO0 (228) : gpio-419 (PN.01) |
− | *GPIO1 (118) : gpio-440 (PQ.05) | + | *GPIO1 (118) : gpio-440 (PQ.05) |
− | *GPIO2 (127) : gpio-318 (PCC.01) | + | *GPIO2 (127) : gpio-318 (PCC.01) |
− | *GPIO3 (206) : gpio-443 (PR.00) | + | *GPIO3 (206) : gpio-443 (PR.00) |
− | *GPIO4 (208) : gpio-437 (PQ.02) | + | *GPIO4 (208) : gpio-437 (PQ.02) |
− | *GPIO5 (211) : gpio-453 (PS.04) | + | *GPIO5 (211) : gpio-453 (PS.04) |
− | *GPIO6 (212) : gpio-436 (PQ.01) | + | *GPIO6 (212) : gpio-436 (PQ.01) |
− | *GPIO7 (218) : gpio-321 (PCC.04) | + | *GPIO7 (218) : gpio-321 (PCC.04) |
<br/> 1).Switch to root | <br/> 1).Switch to root | ||
Line 26: | Line 26: | ||
root@localhost:/home/ubuntu# echo 1 > /sys/class/gpio/PN.01/value | root@localhost:/home/ubuntu# echo 1 > /sys/class/gpio/PN.01/value | ||
</pre> | </pre> | ||
+ | |||
+ | == Reference == | ||
+ | |||
+ | '''JP 4.5.1 / JP 4.6.1'''<br/> [[AIR-020-RS-485|AIR-020-RS-485]]<br/> [[:File:AIR-020-nVidia_GPIO.docx|Calculate GPIO value from pin number]] | ||
[[Category:Pages with broken file links]] | [[Category:Pages with broken file links]] |
Revision as of 07:01, 23 May 2023
Tools
Test Command
GPIO Expander
- GPIO0 (228) : gpio-419 (PN.01)
- GPIO1 (118) : gpio-440 (PQ.05)
- GPIO2 (127) : gpio-318 (PCC.01)
- GPIO3 (206) : gpio-443 (PR.00)
- GPIO4 (208) : gpio-437 (PQ.02)
- GPIO5 (211) : gpio-453 (PS.04)
- GPIO6 (212) : gpio-436 (PQ.01)
- GPIO7 (218) : gpio-321 (PCC.04)
1).Switch to root
ubuntu@localhost:~ sudo -s
2).Commnad : where <GPIO> : gpio number and <LEVEL> : high(1)/low(0)
For example, pull up GPIO0 to high.
root@localhost:/home/ubuntu# echo 419 > /sys/class/gpio/export root@localhost:/home/ubuntu# echo out > /sys/class/gpio/PN.01/direction root@localhost:/home/ubuntu# echo 1 > /sys/class/gpio/PN.01/value
Reference
JP 4.5.1 / JP 4.6.1
AIR-020-RS-485
Calculate GPIO value from pin number