Skip to content

Instantly share code, notes, and snippets.

import pygame
from pygame import locals
import socket
import atexit
pygame.init()
pygame.joystick.init() # main joystick device system
try:
#code for Reciever
import socket
import atexit
import time
import pigpio
pi = pigpio.pi() # Connect to local Pi
pi.set_mode(14, pigpio.OUTPUT)
pi.set_servo_pulsewidth(15, 0)