I have a BU0836X Joystick Interface board which I want to use to read analog Joystick values. http://www.leobodnar.com/shop/index.php?main_page=product_info&products_id=180
On the computer there is a python script running capturing the joystick values using pygame's joystick module.
However, it's possible to get all the information from the board, such as the name, number of axes, number of buttons, etc. Also the supplied calibration tool works perfectly fine.
The only problem I am experiencing is that I can't read the axis data, which perfectly works with any standard gamepad of course. Is there a workaround to get the board up and running in a pygame enviroment?
Here is the super simple script i used for testing:
import pygame
pygame.joystick.init()
while True:
joystick_count = pygame.joystick.get_count()
for i in range(joystick_count):
joystick = pygame.joystick.Joystick(i)
joystick.init()
name = joystick.get_name()
axes = joystick.get_numaxes()
hats = joystick.get_numhats()
button = joystick.get_numbuttons()
joy = joystick.get_axis(0)
print (name,joy)
The output is:
('BU0836X Interface', 0.0)