Serial - Send a character - Raspberry Pi Forums
is there way of sending character in ascii, down uart transmit (pin 14)?
thought use jumper between transmit , receive lines on pi whilst doing this. i'm hoping write short program in way. want able put scope on whilst program running see if works.
managed when switching gpio pins high low on loop need try figure out above.
suggestions?
thought use jumper between transmit , receive lines on pi whilst doing this. i'm hoping write short program in way. want able put scope on whilst program running see if works.
managed when switching gpio pins high low on loop need try figure out above.
suggestions?
the uart /dev/ttyama0, if write transmitted.
pi user doesn't have write permissions port default, use sudo, add pi tty group or change permissions on device.
pi user doesn't have write permissions port default, use sudo, add pi tty group or change permissions on device.
code: select all
sudo sh -c 'echo -n "h" >/dev/ttyama0' # send ascii character "h" serial port (no cr or nl)
raspberrypi
Comments
Post a Comment