Use of the rpc library on the freedom kl25Z. Simple program to enable use of digital pins, and an example of a custom rpc function to access the analog pins
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()
mbed-rpc.lib@0:42d2df2b1c47, 2014-12-01 (annotated)
- Committer:
- sas37
- Date:
- Mon Dec 01 10:05:56 2014 +0000
- Revision:
- 0:42d2df2b1c47
testing the freedom RPC interface
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sas37 | 0:42d2df2b1c47 | 1 | http://mbed.org/teams/mbed-official/code/mbed-rpc/#2a26fd6a2b36 |