PSXHAX.COM website and domain for sale. Contact Us with your offer!
Live in Your World, HAX in Ours!
PS4ToPi: PS4 DualShock 4 Controller to Pi Python Script by Alexoliveira21
We've seen Controlling a DJI Tello Drone, Controlling DeepRacer Race Cars, Controlling a Simple Wireless Rover and most recently Controlling NAO Robots with the PlayStation 4 DualShock 4 controller and alexoliveira21 has now shared a PS4ToPi DS4 to Pi Python Script on Github for use with Adafruit Industries programmable devices by scene developers. 🎮

Download: ps4ToPi-master.zip / GIT

Below is the PS4ToPi script from ps4Controller.py:
Code:
import pygame
from adafruit_servokit import ServoKit

#initializes servos
kit = ServoKit(channels = 16)
steering = kit.servo[0]
motor = kit.servo[15]
steering.angle = 90
motor.angle = 90

#initializes pygame
pygame.init()

#creates a controller object
controller = pygame.joystick.Joystick(0)

#initializes the controller
controller.init()

def scale_servo(x):

        # used to scale -1,1 to 0,180
        y = round((30-70)*x+1/1+1+70,2)

        return y

try:
    while True:
        events = pygame.event.get()
        for event in events:
            angle = scale_servo(controller.get_axis(0))
            steering.angle = angle
            print("Angle: {}".format(angle))
            if event.type == pygame.JOYBUTTONDOWN:
                if controller.get_button(0):
                    print("X Pressed")
                elif controller.get_button(1):
                    print("Circle Pressed")
                elif controller.get_button(2):
                    print("Triangle Pressed")
                elif controller.get_button(3):
                    print("Square Pressed")
                elif controller.get_button(4):
                    print("L1 Pressed")
                elif controller.get_button(5):
                    print("R1 Pressed")...
FIFA 20 Kicks Off New PlayStation 4 Game Releases Next Week
Soccer fans can expect to see the World's Game brought to life next week as FIFA 20 kicks off the new PlayStation 4 game releases featuring updates to FIFA Ultimate Team and an all-new Volta Football mode with the emphasis on action... to the GOAL! ⚽ 🥅

Here's the a summary of what else is heading to PSN next week courtesy of Sony Social Media Manager Justin Massongill:

New PlayStation Games for September 24, 2019
  • Code Vein - PS4 — Digital, Retail (Out 9/27)
  • Color Slayer - PS4, PS Vita — Digital (Cross-Buy)
  • Contra: Rogue Corps - PS4 — Digital, Retail
  • Dreaming Canvas - PS4 — Digital (Out 9/24)
  • FIFA 20 - PS4 — Digital, Retail (Out 9/27)
  • Habroxia - PS4, PS Vita — Digital (Cross-Buy)
  • Star Wars: Jedi Knight II – Jedi Outcast - PS4 — Digital
  • The Surge 2 - PS4 — Digital, Retail
FIFA 20 - Play First With EA Access | PS4
FIFA 20 - Ultimate Team: Get Started in FUT 20 | PS4
PlayStation Music
  • Blink-182 - NINE
  • Madden 20 Soundtrack
  • Rise Against - The Eco-Terrorist in Me
PlayStation Video
  • Crawl
  • Midsommar
  • Spence Jr. vs Porter
PlayStation Vue
  • The Masked Singer - Season Premiere Wednesday, 9/25
  • at 8/7c on FOX
  • It's Always Sunny in Philadelphia - Season Premiere Wednesday, 9/25 at 10PM ET on FXX
  • The Good Place - Season Premiere Thursday, 9/26 at 9/8c on NBC
The information above is subject to change without notice.

FIFA 20 - Wrong Breaks New Ground: Official PS4 Launch Trailer
CECPS4: PS4 Linux Scripts with Single Keyboard Inputs by Minimurti
When initially released last June we missed doing an article covering it, but for those who fancy using single keyboard inputs to control the PS4 check out the CECPS4 Linux scripts on Github by Minimurti if you haven't done so already. 🐧

Download: cecps4-master.zip / GIT

Here are some additional details from the README.md: CECPS4

:arrow: This Project has been moved over here: https://github.com/minimurti/murti-cec-remote

Liinux scripts used to control PS4 with single keyboard inputs.

The following three files are ran at startup on my Raspberry Pi to control my PS4 via cec commands, using noral keyboard input. "test" must be used as a startup script to run exactly when the devise is turned on. It will only work if it is run at startup. (Or if no other terminals have been opened.)

You will need the following utilities for it to work
Below are some related PlayStation 4 Linux topics sorted by date (with the oldest first) for those interested:
Narcos: Rise of the Cartels Hits PlayStation 4 This Fall, PS4 Trailer Video
Similar to Breaking Bad, another Netflix series I got hooked on is Narcos which focuses on Colombian drug lord Pablo Escobar... and today Sony announced Narcos: Rise of the Cartels is hitting PlayStation 4 this Fall 2019. :cool:

Check out the Narcos: Rise of the Cartels PS4 announcement trailer video below, and from the description here's a brief summary of what to expect:

Narcos: Rise of the Cartels is a brutal turn-based action strategy game based on the hit Netflix TV series.

Explore the entire first season from two sides each with their own unique story. Join the narcos and expand the drug cartel empire, or take up arms with the DEA and bring it crumbling down.

Narcos: Rise of the Cartels - PS4 Announcement Trailer
Narcos: Rise of the Cartels - DEA | PS4
Narcos: Rise of the Cartels - PS4 Launch Date Announcement Trailer
Narcos: Rise of the Cartels PS4 Launch Trailer
PS4 Exploit Host Menu Leeful Host v2 WIP Design Update and Demo
Following the PS4 X-Project Updates, Pure HEN Child Friendly Loader and X-Project GTA V Lotus Menu 1.03 Patch PlayStation 4 homebrew developer @Leeful recently shared on Twitter a work-in-progress (WIP) demo video of his PS4 Exploit Host Menu Leeful Host v2 design update featuring a fresh and clean-looking menu! :fire:

To quote from his Tweets embedded below: "Here is a sneak peak of my new Exploit Host Menu design. It's still early days but I've tried to get it to look as close to the original PS4 home menu as possible. Sorry for the video quality. I've now got exploits loading in the new menu. :D"

Meanwhile, @DEFAULTDNB also hinted on Twitter that he is also working on a super lightweight PS4 5.05 exploit host concept, noting the following to quote:

"It's no where near ready for release, but it's turning out quite nicely. I have lots of ideas for it, but it may never see the light of day. It's a fun exercise in JS and a POC of an idea I originally had for X-Project."

Back
Top