Stuart Scott / Mbed 2 deprecated rpc_Freedom_KL25Z_digital_analog

Dependencies:   mbed-rpc mbed

Homepage

Using pyserial in python for the serial communication

Some python code to run the RPC function on embedded on the card.

import numpy as np
import serial
import time

ser=serial.Serial(3,57600, parity='N',bytesize=8,stopbits=1, timeout=None, xonxoff=1)

for i in range(0,100):
    ser.write(b"/AnIn/run\n")
    print(time.clock(),ser.readline())

    

ser.close()


All wikipages