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
import asyncio | |
from bleak import BleakScanner, BleakClient | |
from enum import IntEnum | |
import struct | |
import time | |
# Service and Characteristic UUIDs | |
UART_SERVICE_UUID = "6E400001-B5A3-F393-E0A9-E50E24DCCA9E" | |
UART_TX_CHAR_UUID = "6E400002-B5A3-F393-E0A9-E50E24DCCA9E" # Write | |
UART_RX_CHAR_UUID = "6E400003-B5A3-F393-E0A9-E50E24DCCA9E" # Read/Notify |
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
diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c | |
index fceffe2082ec..ed3633c5955d 100644 | |
--- a/drivers/platform/x86/asus-nb-wmi.c | |
+++ b/drivers/platform/x86/asus-nb-wmi.c | |
@@ -145,6 +145,10 @@ static struct quirk_entry quirk_asus_ignore_fan = { | |
.wmi_ignore_fan = true, | |
}; | |
+static struct quirk_entry quirk_asus_zenbook_duo_kbd = { | |
+ .ignore_key_wlan = true, |
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
// Logiops (Linux driver) configuration for Logitech MX Master 3. | |
// Includes gestures, smartshift, DPI. | |
// Tested on logid v0.2.2-35-g1c209ed. | |
// File location: /etc/logid.cfg | |
devices: ({ | |
name: "Wireless Mouse MX Master 3"; | |
smartshift: { |
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 | |
""" | |
Copyright 2021 Mygod | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
function Simulator(){ | |
var ret = {} | |
var _callback = undefined; | |
var _queue = []; | |
var _counter = 0; | |
ret.fireCallback = function(json) { | |
// console.log('Fire event '+json); | |
if( _callback ) _callback(json); | |
} |