https://www.raspberrypi.org/documentation/configuration/device-tree.md https://www.raspberrypi.org/documentation/configuration/pin-configuration.md https://github.com/systemd-mailing-devs/systemd-mailing-list/commit/405e116f57b1cf33d4ca0294ab045a9f709bbc96 http://www.wiki.xilinx.com/Linux+GPIO+Driver http://derekmolloy.ie/gpios-on-the-beaglebone-black-using-device-tree-overlays/#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
from pyownet import protocol | |
temp_type = "F" | |
pyownet_flags = protocol.FLG_TEMP_F | protocol.FLG_UNCACHED | |
tc_1_mac = "FF8AD3641402" | |
sensor_file_1 = "/28.{}/temperature".format(tc_1_mac) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import pyownet.protocol | |
TIMEOUT = 10 | |
def main(): | |
timeout_time = time.time() + TIMEOUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
from pyownet import protocol | |
p = protocol.proxy('localhost', persistent=False) | |
freq = 1 << 12 | |
for i in itertools.count(): | |
try: | |
c = p.dir() | |
except protocol.Error as exc: |