FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12691 questions

15070 answers

24150 comments

47148 members

0 votes
393 views 0 comments
by
Hello,

I want to use the RS232 to read serial data from an external device and process them in a python script.

I also want to do the some thing with de I/O interface.

What are adresses so i can read them? (For the RS232 ttyACM0? of something like that?)

1 Answer

0 votes
by

Hello,

For communication with RS232 you can use either /dev/rs232 or /dev/ttyUSB1.

GPIO pins are located in /sys/class/gpio.

Input values located in:

  • D1: /sys/class/gpio/gpio3
  • D2: /sys/class/gpio/gpio4
  • D3: /sys/class/gpio/gpio12

Output values:

  • D1: /sys/class/gpio/gpio509
  • D2: /sys/class/gpio/gpio510
  • D3: /sys/class/gpio/gpio511
Best regards,
Tomas