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 pygame | |
from pygame import locals | |
import socket | |
import atexit | |
pygame.init() | |
pygame.joystick.init() # main joystick device system | |
try: |
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
#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) |