Exemple #1
0
# -*- coding: utf-8 -*-
"""
	default ee-prom setup
"""
__author__ = """Alexander Krause <*****@*****.**>"""
__date__ = "2012-11-30"
__version__ = "0.1.0"

import os
import sys
import time

sys.path=\
 [os.path.dirname(os.path.realpath(__file__))+'/../']+sys.path

from lib.cdc import CDC_nRF

myDev = CDC_nRF(sys.argv[1])
print myDev.setDefaultPower(1)
print myDev.setDefaultTXMode(0)
myDev._bus.setDTR(False)
Exemple #2
0
# -*- coding: utf-8 -*-
"""
	reset cdc-nrf
"""
__author__ = """Alexander Krause <*****@*****.**>"""
__date__ = "2012-12-19"
__version__ = "0.1.0"

import os
import sys

sys.path=\
 [os.path.dirname(os.path.realpath(__file__))+'/../']+sys.path

from lib.cdc import CDC_nRF

myDev = CDC_nRF('/dev/ttyACM0')

print myDev.Reset()