This file contains hidden or 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
#include <ESP8266WiFi.h> | |
#include <WiFiUdp.h> | |
#include <EEPROM.h> | |
#define PULSE_PIN 2 // GPIO2 | |
// debug led to VCC: | |
#define DEBUG_LED_PIN 0 // GPIO0 | |
#define DEBUG_LED_LIGHT LOW | |
#define DEBUG_LED_DARK HIGH |
This file contains hidden or 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
#define SerialTxControl 10 | |
#define RS485Transmit HIGH | |
#define RS485Receive LOW | |
void setup() { | |
// initialize both serial ports: | |
Serial.begin(9600); | |
Serial3.begin(9600); | |
pinMode(SerialTxControl, OUTPUT); | |
digitalWrite(SerialTxControl, RS485Receive); |
This file contains hidden or 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
// TODO: separate to lib: | |
#define DEBUG_BAUDRATE 115200 | |
// RS485 PROTOCOL: | |
#define SerialTxControl 10 | |
#define RS485Transmit HIGH | |
#define RS485Receive LOW | |
// CE PROTOCOL: | |
#define CE_BAUDRATE 9600 |
This file contains hidden or 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 QtQuick 2.2 | |
import ru.semiot.gateway 0.1 | |
SemIoTDeviceConfig { | |
// NOTE: is that ok that system driver is only one per device driver? | |
driverName: "udp"; | |
onDriverConnected: { | |
addDriverDataSource({"port":33333}) | |
} | |
onNewDataPacketReceived: { |
This file contains hidden or 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 QtQuick 2.2 | |
import ru.semiot.gateway 0.1 | |
SemIoTDeviceConfig { | |
driverName: "udp"; | |
property int listenPort: 54321 | |
onDriverConnected: { | |
// do nothing | |
// addDriverDataSource({"port":listenPort}) | |
} |
This file contains hidden or 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
# Maintainer: aa13q <[email protected]> | |
# Contributor: speps <speps at aur dot archlinux dot org> | |
pkgname=dataquay-git | |
appname=dataquay | |
pkgver=0.9 | |
pkgrel=3 | |
pkgbranch=master | |
pkgdesc="A free open source library that provides a friendly C++ API for an RDF data store, using Qt classes and containers." | |
arch=(i686 x86_64) |
This file contains hidden or 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
from socketserver import * | |
host = '192.168.0.121' | |
port = 5683 | |
addr = (host,port) | |
class MyUDPHandler(DatagramRequestHandler): | |
def handle(self): | |
data = self.request[0] |
This file contains hidden or 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
// TODO: separate to lib: | |
#define DEBUG_BAUDRATE 115200 | |
// RS485 PROTOCOL: | |
#define SerialTxControl 10 | |
#define RS485Transmit HIGH | |
#define RS485Receive LOW | |
// CE PROTOCOL: | |
#define CE_BAUDRATE 9600 |
This file contains hidden or 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
#!/usr/bin/python2 | |
# based on: https://gist.github.com/pindia/3836713 | |
from itertools import izip, product, tee | |
# Logic functions: take and return iterators of truth values | |
def AND(a, b): | |
for p, q in izip(a, b): | |
yield p and q |
This file contains hidden or 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
# Based on linux-tegra by: Anatol Pomozov <[email protected]> | |
# Contributor: Alexey Andreyev <[email protected]> | |
pkgname=linux4tegra | |
pkgver=24 | |
pkgrel=1 | |
pkgdesc='linux4tegra' | |
arch=(x86_64) | |
license=(NVIDIA) | |
depends=(lib32-glibc lib32-gcc-libs) # mkbootimg is 32-bit binary |