- VID:PID - 0416:5020
- Product ID: LS32 Custm HID
- uses HID Protocoll
- 2 endpoints, uses endpoint 1 for data, all with report 0
- 64 byte paket size
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/python | |
''' | |
Very simple XBMC/Kodi controller via http POST request and JSONRPC | |
(testing the principle..) | |
''' | |
import httplib | |
import sys, argparse | |
import json | |
PI = '192.168.162.33' |
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/python3 | |
# | |
''' Script to create a correction table for PWM values | |
to create linear brightness for a LED | |
based on the CIE1931 algorithm | |
original author: ?? | |
''' | |
PWM_BIT_SIZE = 8 # Bit size of used PWM | |
CORR_TABLE_SIZE = 16 # Number of elements in vector | |
#### |
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
# Hey Emacs, this is a -*- makefile -*- | |
# | |
# see: http://ed.am/dev/make/arduino-mk | |
# | |
# SOURCES := main.c other.cpp | |
# LIBRARIES := EEPROM SPI Adafruit_GFX Adafruit_ST7735 | |
# LIBRARYPATH := | |
# CPPFLAGS := -std=c++11 -Wl,-Map=foo.map -Wa,-aln=OUT.s | |
# SERIALMON := cutecom | |
# |
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
# -*- coding: utf-8 -*- | |
from mpsse import * | |
import time | |
i2c = MPSSE(I2C, FOUR_HUNDRED_KHZ) | |
#i2c = MPSSE(I2C, ONE_HUNDRED_KHZ) | |
# Adress: \x4A (base) -> write: \x94 , read: \x95 | |
# Configuration: \x60 (01100000b : 12bit resolution) |
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/python | |
''' | |
Read data from Voltcraft VC506 | |
and write to file or console | |
see: | |
https://pythonhosted.org/pyserial/ | |
''' | |
import serial | |
import time |
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
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <inttypes.h> | |
#include "scheduler.h" | |
// Task definitions | |
#define nTask1 1 | |
#define nTask2 2 |
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
# see also: /lib/udev/hwdb.d/60-keyboard.hwdb | |
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pn*EliteBook*:pvr* | |
KEYBOARD_KEY_81=f20 # Fn+F8 on Elitebook, map to F20 | |
# KEYBOARD_KEY_81=fn_esc # org entry |
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
class Foo(object): | |
def __getattribute__(self, name): | |
print "getting attribute %s" % name | |
return object.__getattribute__(self, name) | |
def __setattr__(self, name, val): | |
print "setting attribute %s to %r" % (name, val) | |
return object.__setattr__(self, name, val) |
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 python3 | |
# -*- coding: utf-8 -*- | |
try: | |
import tkinter as tk | |
except ImportError: | |
import Tkinter as tk | |
class VerticalScrolledFrame: | |
""" |
OlderNewer