Skip to content

Instantly share code, notes, and snippets.

View Ryochan7's full-sized avatar

Travis Nickles Ryochan7

View GitHub Profile
@dogtopus
dogtopus / outpoke5.py
Created November 4, 2020 06:23
DualSense output report fuzzer
#!/usr/bin/env python3
import hid
import os
import contextlib
import time
if __name__ == '__main__':
with contextlib.closing(hid.device()) as dev:
dev.open(0x054c, 0x0ce6)
@dogtopus
dogtopus / ds5.desc.xml
Last active September 19, 2024 07:45
DualSense descriptor
<?xml version="1.0"?>
<!--
DualSense (DS5) USB HID Report Descriptor
Documentation WIP
TODO: Extract info from hid-playstation and cross-verify with us.
-->
@DJm00n
DJm00n / gipHidGamepadDescriptor.txt
Last active May 8, 2021 02:16
xusb.sys HID Report Descriptors
//--------------------------------------------------------------------------------
// Report descriptor data in hex (length 262 bytes)
//--------------------------------------------------------------------------------
// 05010905 A101A100 09300931 150027FF FF000095 02751081 02C0A100 09330934
// 150027FF FF000095 02751081 02C00501 09321500 26FF0395 01750A81 02150025
// 00750695 01810305 01093515 0026FF03 9501750A 81021500 25007506 95018103
// 05091901 290A950A 75018102 15002500 75069501 81030501 09391501 25083500
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
devpkey.h
Abstract:
@webinista
webinista / pelicanconf.py
Last active May 28, 2024 04:08
A Pelican configuration for having a home page and blog index or landing page.
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# --------------------------------------
# Now compatible with Pelican 4.0.x!
# --------------------------------------
# Added by me
import time
@MightyPork
MightyPork / usb_hid_keys.h
Last active November 12, 2024 03:32
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@poconbhui
poconbhui / play.py
Last active May 22, 2021 18:07 — forked from a1ien/play.py
#!/usr/bin/env python3
#
# DS4 report stuff
#
import struct
from sys import stdin, argv
import os
from io import FileIO
@a1ien
a1ien / play.py
Last active October 23, 2021 12:33
#!/usr/bin/env python3
import struct
from sys import stdin
import os
from io import FileIO
hiddev = os.open("/dev/hidraw5", os.O_RDWR | os.O_NONBLOCK)
pf = FileIO(hiddev, "wb+", closefd=False)
#pf=open("ds_my.bin", "wb+")
anonymous
anonymous / Accordion.qml
Created January 29, 2016 01:14
import QtQuick 2.4
Column {
width: parent.width
height: parent.height
property alias model: columnRepeater.model
Repeater {
id: columnRepeater
@dakrawczyk
dakrawczyk / filterUpdate.c
Created December 3, 2015 16:12
Accepts raw data from IMU and filters to Quaternion
#include <math.h>
// System constants
#define deltat 0.001f // sampling period in seconds (shown as 1 ms)
#define gyroMeasError 3.14159265358979f * (5.0f / 180.0f) // gyroscope measurement error in rad/s (shown as 5 deg/s)
#define beta sqrt(3.0f / 4.0f) * gyroMeasError // compute beta
//Global System Variables
float a_x, a_y, a_z; // accelerometer measurements