Skip to content

Instantly share code, notes, and snippets.

View s-light's full-sized avatar
🌞
happy

Stefan Krüger s-light

🌞
happy
View GitHub Profile
@s-light
s-light / test__RS485_Controllino.ino
Last active January 18, 2017 17:44
RS485 HalfDuplex Test for Controllino
/******************************************************************************
test__RS485_Controllino
Test for RS485 HalfDuplex ASCII comunication
debugout on usbserial interface: 115200baud
hardware:
Board:
Arduino compatible (with serial port)
LED on D2 (livesign)
@s-light
s-light / readme.md
Last active February 13, 2016 11:27
cross compile olad for Arietta G25 board
RomBOOT
AT91Bootstrap 3.7 (Fr 12. Feb 19:04:07 CET 2016)
1-Wire: Loading 1-Wire information ...
1-Wire: ROM Searching ... Done, 0x0 1-Wire chips found
WARNING: 1-Wire: No 1-Wire chip found
@s-light
s-light / ola_test.cpp
Created May 18, 2016 21:29
ola test for segfault at wrapper.Setup()
// ola_test.cpp
// based on example from
// http://docs.openlighting.org/ola/doc/latest/dmx_cpp_client_tutorial.html
// build for local:
// g++ -std=c++11 ola_test.cpp -o ola_test.out $(pkg-config --cflags --libs libola)
#include <ola/DmxBuffer.h>
@s-light
s-light / profiling gradient pattern
Last active October 7, 2016 08:55
Profiling things for OLA_test_pattern_generator
import cProfile
cProfile.run("my_pattern.pattern['gradient']._calculate_step()", sort='cumtime')
Test for static pattern:
'pc': set pixel count 'pc:405'
'rc': set repeate count 'rc:1'
'rs': set repeate snake 'rs:False'
'mo': set mode_16bit 'mo:False'
'vh': set value high '
--> 1215 channels
@s-light
s-light / main.py
Created November 24, 2016 14:57
Kivy test for Rotation and collide_point in on_touch_move
#!/usr/bin/env python3
# coding=utf-8
"""
Basic Kivy Rotation Test.
minimal setup to test collide_point and rotation behavior
"""
@s-light
s-light / olad.service
Last active April 28, 2022 16:55
olad systemd service file
# based on examples found at
# https://learn.adafruit.com/running-programs-automatically-on-your-tiny-computer/systemd-writing-and-enabling-a-service
# https://medium.com/@johannes_gehrs/getting-started-with-systemd-on-debian-jessie-e024758ca63d
# https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
# https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Before=
# https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Wants=
# copy to target with:
# sudo cp olad.service /etc/systemd/system/
# enable service
@s-light
s-light / bounce.js
Last active January 17, 2017 23:00
bouncing tests
// bounce ball from border
// class concept based on
// https://groups.google.com/forum/#!topic/paperjs/Urf_V3kBSBo
var Ball = Base.extend({
initialize: function Ball(position, vector) {
Base.call(this);
this.position = position || view.center;
this.vector = vector || new Point({
@s-light
s-light / error.log
Created March 23, 2017 16:15
osc with webpack - error log file
xxx/github/tuio.js-example-webpack[master]$ ./node_modules/webpack/bin/webpack.js --progress
Hash: 6986ceecb6f5538a1ed2
Version: webpack 2.3.1
Time: 3574ms
Asset Size Chunks Chunk Names
bundle.js 1.11 MB 0 [emitted] [big] main
bundle.js.map 1.35 MB 0 [emitted] main
[0] ./~/buffer/index.js 48.6 kB {0} [built]
[5] (webpack)/buildin/global.js 509 bytes {0} [built]
[6] ./~/util/util.js 15.6 kB {0} [built]
@s-light
s-light / olad error log
Last active January 22, 2018 10:54
running olad in qemu-arm-static chroot
light@stefan-Latitude-E6510:~$ date; olad -l4; date
Sun Jan 21 15:12:17 CET 2018
olad/Olad.cpp:94: OLA Daemon version 0.10.5
common/io/EPoller.cpp:82: EPOLL_CTL_ADD 5, events 2001, descriptor: 0x42388
olad/OlaDaemon.cpp:121: Using configs in /home/light/.ola
common/io/EPoller.cpp:82: EPOLL_CTL_ADD 8, events 2001, descriptor: 0x3bd48
common/thread/Thread.cpp:194: Thread pref-saver, policy SCHED_OTHER, priority 0
common/rdm/PidStoreLoader.cpp:271: Loading DISC_UNIQUE_BRANCH
common/rdm/PidStoreLoader.cpp:271: Loading DISC_MUTE
common/rdm/PidStoreLoader.cpp:271: Loading DISC_UN_MUTE