Skip to content

Instantly share code, notes, and snippets.

@LarsWerkman
LarsWerkman / Main.java
Created February 11, 2013 13:53
A sample application which shows what the HoloColorPicker library can do.
public class Main extends Activity implements OnColorChangedListener {
private ColorPicker picker;
private SVBar svBar;
private OpacityBar opacityBar;
private Button button;
private TextView text;
@Override
protected void onCreate(Bundle savedInstanceState) {
@LarsWerkman
LarsWerkman / fifo.v
Last active December 29, 2018 12:11
RGB pixels to FIFO
/*
* This is a 2 clock fifo used for transferring data between
* clock domains.
*
* I assume here that the output (read) clock is >5X slower than the
* input (write) clock.
*
* Also, the fifo is just 1 word deep.
*
* Changes