Skip to content

Instantly share code, notes, and snippets.

View felixheld's full-sized avatar

Felix Held felixheld

View GitHub Profile
class SdiXyzEncoder(Module):
def __init__(self):
self.i_timing_flags = Record(SDI_TIMING_FLAGS)
self.o_data = Signal(SDI_ELEMENTARY_STREAM_DATA_WIDTH)
###
protection_bits = Signal(4)
self.comb += [
#!/usr/bin/env python3
from litex.build.generic_platform import *
from litex.build.xilinx import XilinxPlatform
_io = [
("clk25", 0, Pins("C18"), IOStandard("LVCMOS18")),
("user_led", 0, Pins("E21"), IOStandard("LVCMOS18")),
("user_led", 1, Pins("E22"), IOStandard("LVCMOS18")),
@felixheld
felixheld / patch_kicad_pinch_to_zoom.patch
Created October 14, 2015 19:37
kicad patch to make pinch to zoom work on osx - updated version of https://gist.github.com/nonninz/cf995b57e37a5fc4ca40
=== modified file 'common/draw_panel.cpp'
--- common/draw_panel.cpp 2015-03-03 12:41:43 +0000
+++ common/draw_panel.cpp 2015-03-06 17:28:10 +0000
@@ -936,7 +936,7 @@
// This is a zoom in or out command
if( event.GetWheelRotation() > 0 )
{
- if( event.ShiftDown() && !event.ControlDown() )
+ if( !event.ShiftDown() && !event.ControlDown() )
{