Objects of interest
Block Chain Electronics:
OE-PORT-mini | PIC12F1840
OE-LION Battery Charger OE-ANALOG-multiplexer 8-channel voltmeter OE-I2C-modules GPIO, A/D, step
Open source project:
.:
Install | Setup
System | Script Code | Python | C |
Raspberry GPIO | Simple test 02 | UART & PIC
PIC 12F1840 with code of OE-PORT-mini
sudo nano /boot/cmdline.txt
> dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait sudo nano /etc/inittab # respawn:/sbin/getty -L ttyAMA0... sudo apt-get install python-serial
..
#!/usr/bin/python
import time import serial # set serial port = serial.Serial(port='/dev/ttyAMA0', baudrate=9600, bytesize=serial.SEVENBITS, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_TWO, timeout=None, xonxoff=False, rtscts=False, writeTimeout=None, dsrdtr=False, interCharTimeout=None) ... # read value = port.read(14) print value ... |