Skip to content

Instantly share code, notes, and snippets.

When it comes to led_driver.py, the entire send_to_teensy() definition can be nuked.
send_to_teensy() is essentially equivalent to blinkstick's own set_led_data() function.
So we erase that, and back in the main function we can almost just replace the call to send_to_teensy() with a call for set_led_data() except that the data needs to be prepared a little bit.
In the main loop, strip contains a bunch of LED data that looks like this:
[(1, 2, 3), (4, 5, 6), (7, 8, 9)]
@different55
different55 / keybase.md
Created December 19, 2017 17:02
keybase.md

Keybase proof

I hereby claim:

  • I am different55 on github.
  • I am different55 (https://keybase.io/different55) on keybase.
  • I have a public key ASAEAt-87EZXQR3_mmLlOuM0m_9pRx_hI7I9azvloF_gwwo

To claim this, I am signing this object:

import bpy
import math
nums = 18
min = 20
max = 8000
min_log = math.log10(min)
max_log = math.log10(max)
step = (max_log - min_log) / nums
mp3 = "D:\\projects\\blender\\visualizer\\inthesun.mp3"