Skip to content

Instantly share code, notes, and snippets.

@albertskog
albertskog / python-ddcci.diff
Created November 13, 2024 11:44
Diff to print DDC commands to terminal instead of SMBus
diff --git a/ddcci.py b/ddcci.py
index 4c98a91..bbfb4b9 100644
--- a/ddcci.py
+++ b/ddcci.py
@@ -1,4 +1,4 @@
-import smbus
+# import smbus
import time
from functools import wraps

Keybase proof

I hereby claim:

  • I am albertskog on github.
  • I am albertskog (https://keybase.io/albertskog) on keybase.
  • I have a public key ASCFtVVmXjxQDmRTDj8D8cNMfChlfzXq8ofZziPvyy9gWAo

To claim this, I am signing this object:

@albertskog
albertskog / ddd.htm
Last active December 17, 2015 11:49
Get the article of german nouns from Wiktionary
<!DOCTYPE html>
<html>
<head>
<title>der die das?</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="icon" href="favicon.ico" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.js"></script>
<script>