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 array, time | |
from machine import Pin | |
import rp2 | |
# Configure the number of WS2812 LEDs, pins and brightness. | |
NUM_LEDS = 20 * 21 | |
PIN_NUM = 0 | |
brightness = 0.1 | |
LED_PIN = 25 |
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/env python3 | |
import numpy as np | |
import matplotlib | |
from matplotlib import pyplot as plt | |
from filter_lib import * | |
from scipy import signal | |
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/env python3 | |
import sys | |
import numpy as np | |
import matplotlib | |
import scipy | |
from matplotlib import pyplot as plt | |
import math |
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
case class MyBundle(config: MyConfig) extends Bundle { | |
val valid = Bool | |
val data = UInt(32 bits) | |
} | |
... | |
val bundle = MyBundle(config) | |
bundle.valid := valid && ready |