Skip to content

Instantly share code, notes, and snippets.

@daid
daid / marlinPlayer.py
Created February 5, 2015 15:42
Marlin player to go with the enhancements I did to the communication protocol https://github.com/Ultimaker/Ultimaker2Marlin/tree/lite/Marlin
import Queue
import threading
import time
import re
import logging
from serial import Serial
# Enable the testSerialWrapper to test the data communication stability with an introduced error rate.
if False:
from test.serialWrapper import TestSerial as Serial
#[hardware]
#device = DMX512SerialDevice
#device = EnttecDMXProDevice
#device = VirtualOutputDevice
#port = COM1
#[hardware]
## Virtual output device, for debugging. Will show up as white squares on the screen.
#device = VirtualOutputDevice
-- Name: The black Wall
-- Description: Fight the Ghosts behind the wall
-- Author: Dyrian
require("utils.lua")
function init()
#!/bin/bash
set -e
set -u
### Parameters for the installation.
TARGET_NFS_DIR=/srv/nfsroot/
TARGET_TFTP_DIR=/srv/tftp/
MIRROR=http://ftp.debian.org/debian/
ETH=eth0
#include "DMXSerial.h"
/*
Simple example of using the DMSSerial library in combination with EE's hardware configuration to provide 4 relay outputs that can be used to show game states.
This is using the Arduino relay board from: https://www.seeedstudio.com/item_detail.html?p_id=2440
*/
void setup()
{
DMXSerial.init(DMXReceiver);
#include "equeue/equeue.h"
#include <assert.h>
#include <stdio.h>
static unsigned int tick_counter;
void test_func(void* data)
{
printf("test_func: %p\n", data);
}