-
Terminal Fenster öffnen (Symbol ">_")
-
"./start_sandbox.sh" eingeben -> enter
-
es erscheint ein Fenster "RawKinectViewer"
-
links: "Tiefenbild" der Kinect (eher blau)
-
rechts: Kamarabild der Kinect
-
Ausschnitt des Tiefenbilds vergößern, so dass Sandbox möglichst groß zu sehen ist
-
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
-- pin = 3 -- GPIO0 | |
pin = 4 -- GPIO2 | |
FLOAT_FIRMWARE = (1/3) > 0 | |
function readDht() | |
status, temp, humi, temp_dec, humi_dec = dht.read(pin) | |
if status == dht.OK then | |
if FLOAT_FIRMWARE then | |
-- Float firmware using this example |
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
#!/bin/sh | |
# chkconfig: 123456 90 10 | |
# Startscript fuer den PIR-Sensor | |
# | |
verzeichnis=/usr/local/bin | |
scriptname=pi-pir.py | |
start() { | |
cd $verzeichnis | |
/usr/bin/python $verzeichnis/$scriptname 2>&1 >> /var/log/pirsensor.log & |
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
#------------------------------------------------------------------------------- | |
# Copyright (c) 2015, Thomas Mohaupt <Thomas.Mohaupt@gmail.com> | |
# All rights reserved. | |
# | |
# This is a BSD 2-Clause license, | |
# see http://opensource.org/licenses/bsd-license.php | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# |
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
org.hamcrest.core | |
org.hamcrest.MatcherAssert | |
org.hamcrest.Matchers | |
org.mockito.Mockito |
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 processing.serial.*; | |
// 2D Array of objects | |
DrawCell[][] grid; | |
Cell[] buffer; | |
Serial myPort; | |
// Number of columns and rows in the grid | |
int cols = 16; |
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
int redPin = 0; | |
int greenPin = 1; | |
int resetPin = 4; | |
int selectPin = 5; | |
int brightPin = 3; | |
int clockPin = 2; | |
int offset = 0; | |
int bufferCol = 0; |
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
#!/usr/bin/env python | |
import socket | |
# Set the socket parameters | |
# avr-netio ip address | |
host = "10.0.0.52" | |
# avr-netio port | |
port = 7777 | |
addr = (host,port) |
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
// IP, Arp, UDP and TCP functions. | |
// Author: Guido Socher | |
// Copyright: GPL V2 | |
// | |
// The TCP implementation uses some size optimisations which are valid | |
// only if all data can be sent in one single packet. This is however | |
// not a big limitation for a microcontroller as you will anyhow use | |
// small web-pages. The web server must send the entire web page in one | |
// packet. The client "web browser" as implemented here can also receive | |
// large pages. |
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
// | |
// Environment: | |
// * Pollin AVR NETIO board, | |
// * Arduino 1.0.3, | |
// * avr-netino (https://code.google.com/p/avr-netino/) | |
// | |
// This is a demo of receiving udp packets | |
// | |
// 2012-12-22 <Thomas.Mohaupt@gmail.com> http://creativecommons.org/licenses/by-sa/3.0/ | |
// Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) |