Skip to content

Instantly share code, notes, and snippets.

View racarla96's full-sized avatar

Rafael Carbonell Lázaro racarla96

View GitHub Profile
@ast
ast / qe.c
Created September 9, 2017 13:28
How to read a quadrature encoder in C on the Raspberry Pi GPIO, using the wiringPi library.
//
// qe.c
// hidtest
//
// Created by Albin Stigö on 09/09/2017.
// Copyright © 2017 Albin Stigo. All rights reserved.
//
// License BSD
// https://opensource.org/licenses/BSD-2-Clause
@tuxmartin
tuxmartin / udp_ipv6_client.py
Last active May 25, 2024 10:12
Python UDP IPv6 client & server
import socket
UDP_IP = "::1" # localhost
UDP_PORT = 5005
MESSAGE = "Hello, World!"
print "UDP target IP:", UDP_IP
print "UDP target port:", UDP_PORT
print "message:", MESSAGE