Skip to content

Instantly share code, notes, and snippets.

@prcutler
Created October 8, 2021 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prcutler/e1fb2e119dd96156e8f0a4647f93882b to your computer and use it in GitHub Desktop.
Save prcutler/e1fb2e119dd96156e8f0a4647f93882b to your computer and use it in GitHub Desktop.
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
array('H', [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
Mic sample: 11856
Spec1 array([0.0, 0.0, 0.0, ..., 0.0, 0.0, 0.0], dtype=float32)
Data array([-0.0, -0.0, -0.0, ..., -0.0, -0.0, -0.0], dtype=float32)
Data & Y array([-0.0, -0.0, -0.0, ..., -0.0, -0.0, -0.0], dtype=float32) 0 Type: <class 'ndarray'> <class 'int'>
<function waves at 0x20009b80> 0
Traceback (most recent call last):
File "code.py", line 157, in <module>
File "code.py", line 154, in main
File "adafruit_framebuf.py", line 244, in pixel
TypeError: unsupported types for __lt__: 'function', 'int'
Code done running.
Press any key to enter the REPL. Use CTRL-D to reload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment