Skip to content

Instantly share code, notes, and snippets.

View axodox's full-sized avatar

Péter Major axodox

View GitHub Profile
typedef HANDLE(WINAPI *CreateFileWCallback)(
LPCWSTR lpFileName,
DWORD dwDesiredAccess,
DWORD dwShareMode,
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
DWORD dwCreationDisposition,
DWORD dwFlagsAndAttributes,
HANDLE hTemplateFile
);
@axodox
axodox / AxoCoverCLA.md
Created July 16, 2017 18:37
AxoCover CLA

I hereby agree to submit my changeset - including the source code, any associated documentation, media and data files - to the AxoCover project under the license below. I also agree that these changes aren't subject to any copyright, contract, patent or license, which would be in collision with the license below. Should a collision exist, I agree that I am solely responsible for the inclusion and release of the changeset in the AxoCover project.

MIT license

@axodox
axodox / WpfTouchSimulation
Created October 3, 2017 22:16
WPF Touch Simulation Example
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
@axodox
axodox / adalight.cpp
Last active November 30, 2020 15:48
Dim on and off
/*
* Arduino interface for the use of WS2812 strip LEDs
* Uses Adalight protocol and is compatible with Boblight, Prismatik etc...
* "Magic Word" for synchronisation is 'Ada' followed by LED High, Low and Checksum
* @author: Wifsimster <wifsimster@gmail.com>
* @library: FastLED v3.001
* @date: 11/22/2015
*/
#include "FastLED.h"
#define MAX_LEDS 214
@axodox
axodox / luxconf.json
Created November 30, 2020 15:56
My config file for Lux
{
"adaLight": {
"usbVendorId": 6790,
"usbProductId": 29987,
"baudRate": 1000000,
"ledSyncDuration": 10
},
"layout": {
"displaySize": {
"width": 121.8,