Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
test-serial-write.py
1#!/usr/bin/env python
2
3# This test has to run on a laptop connected throw a USB
4# to serial adapter to a Raspberry Pi.
5
6import serial
7
8ser = serial.Serial(
9 port='/dev/ttyAMA0',
10 baudrate = 9600,
11 timeout=0
12)
13
14x = ser.write('hello')
15ser.close()
16