Reply to thread
GBAtemp.net - The Independent Video Game Community
Search
Search titles only
By:
Search titles only
By:
Reply to thread
GBAtemp.net - The Independent Video Game Community
Home
Log in
Terms & Rules
Donate
Forums
New posts
Search forums
Groups
Public Events
New
New posts
New resources
New blog entries
New profile posts
New blog entry comments
New threadmarks
Latest activity
Cheats
Cheat Codes Add and Request group
The Legend of Zelda: Tears of the Kingdom cheat codes
Pokémon Legends: Arceus cheat codes
Xenoblade Chronicles 3 cheat codes
Fire Emblem Engage cheat codes
Request a cheat...
Tutorials
Nintendo Switch tutorials
Nintendo 3DS tutorials
Nintendo Wii U tutorials
Reviews
Overview
Official reviews
User reviews
Downloads
Latest reviews
Search resources
Blogs
New entries
New comments
Blog list
Search blogs
Chat
Top chatters
Search
Search titles only
By:
Search titles only
By:
Log in
Register
New posts
Search forums
Log in
Register
Home
Forums
PC, Console & Handheld Discussions
Nintendo Switch
Trying to use Python Switch Controller
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cclloyd" data-source="post: 9110641" data-attributes="member: 346977"><p>I'm trying to use python to control my switch. I've been looking at various guides and projects, and currently what I'm trying to use is the following.</p><p></p><p>- Arduino Uno R3 atmega16u2</p><p>- HiLetgo FT232RL FTDI Mini USB to TTL Serial Converter</p><p>- CommunityController</p><p></p><p>&nbsp;</p><p></p><p>I flashed the arduino using the Joystick.hex file in the CC repo. When I do `lsusb` on my mac it now shows up as `Bus 020 Device 023: ID 0f0d:0092 HORI CO., LTD. POKKEN CONTROLLER`.</p><p></p><p>I then plugged in the Rx->Rx and Tx->Tx from the serial adapter to the Arduino. Then plugged the arduino into the switch and the serial adapter into my mac.</p><p></p><p>&nbsp;</p><p></p><p>Trying to run the program however fails. The device that shows up when I do `lsusb` is `Bus 020 Device 024: ID 0403:6001 Future Technology Devices International Limited FT232R USB UART Serial: A50285BI`.</p><p></p><p>Running the python code, when it tries to find the serial port to use, it shows `1027 24577 /dev/cu.usbserial-A50285BI - FT232R USB UART - FT232R USB UART` for `p.vid`, `p.pid`, and `p`. Normally it wouldn't choose that because it tries to use 4292 and 60000 for vid/pid. When I leave it as default it says "No Arduino Found". When switching it and just trying an input, it seems to hang indefinitely.</p><p></p><p>&nbsp;</p><p></p><p>For example, I had the script just try to press A.</p><p></p><p>(would post the code but GBATemp is preventing me from doing so or from posting a pastebin link)</p><p> </p><p>Running this makes it hang indefinitely.</p><p></p><p>Is there something I'm doing wrong here? Is a piece of hardware I have not compatible?</p></blockquote><p></p>
[QUOTE="cclloyd, post: 9110641, member: 346977"] I'm trying to use python to control my switch. I've been looking at various guides and projects, and currently what I'm trying to use is the following. - Arduino Uno R3 atmega16u2 - HiLetgo FT232RL FTDI Mini USB to TTL Serial Converter - CommunityController I flashed the arduino using the Joystick.hex file in the CC repo. When I do `lsusb` on my mac it now shows up as `Bus 020 Device 023: ID 0f0d:0092 HORI CO., LTD. POKKEN CONTROLLER`. I then plugged in the Rx->Rx and Tx->Tx from the serial adapter to the Arduino. Then plugged the arduino into the switch and the serial adapter into my mac. Trying to run the program however fails. The device that shows up when I do `lsusb` is `Bus 020 Device 024: ID 0403:6001 Future Technology Devices International Limited FT232R USB UART Serial: A50285BI`. Running the python code, when it tries to find the serial port to use, it shows `1027 24577 /dev/cu.usbserial-A50285BI - FT232R USB UART - FT232R USB UART` for `p.vid`, `p.pid`, and `p`. Normally it wouldn't choose that because it tries to use 4292 and 60000 for vid/pid. When I leave it as default it says "No Arduino Found". When switching it and just trying an input, it seems to hang indefinitely. For example, I had the script just try to press A. (would post the code but GBATemp is preventing me from doing so or from posting a pastebin link) Running this makes it hang indefinitely. Is there something I'm doing wrong here? Is a piece of hardware I have not compatible? [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
PC, Console & Handheld Discussions
Nintendo Switch
Trying to use Python Switch Controller
General chit-chat
Help
Users
Settings
Notifications
Miscellaneous
Inverse message direction
Display editor on top
Enable maximized mode
Display images as links
Hide bot messages
Hide statuses
Hide chatter list
Show messages from ignored users
Temporarily disable chat
Receive mention alerts
Sound notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Desktop notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Options
Options
View top chatters
No one is chatting at the moment.
@
BigOnYa
:
I seen that, hope so too, the first was so epic back then.
Today at 1:56 AM
@
K3Nv2
:
Didn't look into much is it just a remake
Today at 1:57 AM
@
BigOnYa
:
Only thing drive me crazy is all these new horror games nowadays is its so dark, all time. I can't even play them. I understand they trying to create spooky but be creative a little, not just darkness with pop out scare scenes.
+1
Today at 1:59 AM
@
Xdqwerty
:
@BigOnYa
, either that or mascot horror
+1
Today at 2:13 AM
@
Psionic Roshambo
:
https://www.reddit.com/r/Whatcouldgowrong/s/zFNgZdLFQ1
Today at 2:19 AM
@
Xdqwerty
:
gonna watch gintama for the first time
Today at 2:20 AM
@
Psionic Roshambo
:
@BigOnYa
, I always turn the lights up on those lol
+1
Today at 2:21 AM
@
K3Nv2
:
Two studio lights for one horror game
Today at 2:22 AM
@
Psionic Roshambo
:
Lol
Today at 2:22 AM
@
K3Nv2
:
https://youtu.be/9w0hKiTgxtE?si=ON3eq3tR1mZJi3h8
Today at 2:26 AM
@
K3Nv2
:
Couch casting for horror
+1
Today at 2:26 AM
@
K3Nv2
:
Mig switch already has a v2 lol
Today at 2:53 AM
@
OGSniper
:
How we doin' in here?
Today at 2:59 AM
@
K3Nv2
:
https://videocardz.com/newz/amd-introduces-ryzen-9000-zen5-desktop-cpus-granite-ridge
+1
Today at 3:34 AM
@
K3Nv2
:
5.7Ghz sounds crazy
Today at 3:35 AM
@
Sicklyboy
:
hz my nuts
Today at 3:39 AM
@
K3Nv2
:
Tylenol
Today at 3:40 AM
@
K3Nv2
:
Giganutz
Today at 3:42 AM
@
NinStar
:
Today at 4:28 AM
@
BigOnYa
:
Couch casting horror, lol
Today at 5:52 AM
@
ZeroT21
:
You need better couch potatoes la
+1
Today at 5:54 AM
@
BigOnYa
:
Tbh isn't that already couch casting
Today at 6:25 AM
@
K3Nv2
:
She sat on a couch must be a hoe
+1
Today at 6:28 AM
@
BigOnYa
:
Damn, stay on that plastic. (If you know, you know)
Today at 6:34 AM
@
BigOnYa
:
I played the intro to far cry 5, that is like some crazy Jim Jones cult shit. Still its petty damn good. You get to shot them crazy f ers.
50 minutes ago
Submit
@
BigOnYa
:
I played the intro to far cry 5, that is like some crazy Jim Jones cult shit. Still its petty...
50 minutes ago
Chat
0