Search found 83 matches

by arpruss
Sun Oct 16, 2022 3:52 pm
Forum: General discussion
Topic: Clones and RTC
Replies: 8
Views: 1462

Re: Clones and RTC

On the blue pill where LSE didn't work, it started working for me yesterday. No idea what changed. Anyway, I rewrote a bunch of the LSE init code to have a timeout so that it doesn't hang on failure (for my use case, it's not a big deal if sometimes the clock doesn't work, but it is unfortunate if t...
by arpruss
Sat Oct 15, 2022 4:31 pm
Forum: General discussion
Topic: Clones and RTC
Replies: 8
Views: 1462

Re: Clones and RTC

It looks like I have two types of clones at home. One type hangs when you start LSE, but keeps RTC memory if you pull the power supply (with VBAT connected). The other type hangs when you start LSI, and works with LSE, but loses RTC memory if you pull the power supply (with VBAT connected). It does ...
by arpruss
Mon Oct 10, 2022 3:10 am
Forum: General discussion
Topic: Clones and RTC
Replies: 8
Views: 1462

Re: Clones and RTC

I switched to LSE and that works. However, it seems that clock data (both time and stuff stored in the storage registers) disappears after I pull the USB plug, even if I have 3.3V hooked up to the VBat pin. Any suggestions? I think what I have is a CS32F103C8T6.
by arpruss
Sun Oct 09, 2022 3:19 am
Forum: General discussion
Topic: Clones and RTC
Replies: 8
Views: 1462

Clones and RTC

I have a bunch of recent Blue Pills, no doubt stm clones, which hang when I call rtc_init(RTCSEL_LSI). Has anyone got any idea on whether clones have a working internal RC oscillator clock, and if so, how one activates it? RTCSEL_LSE seems to work fine.
by arpruss
Wed Aug 31, 2022 4:19 am
Forum: Projects
Topic: adb2usb for old Apple mice and keyboards
Replies: 2
Views: 4575

Re: adb2usb for old Apple mice and keyboards

Two updates: 1. If you have a mouse plugged into a keyboard, then the keyboard's power button (which I can't get working on Windows in a useful way) emulates the mouse right button, so you can use a one-button Apple mouse with a PC. 2. A 3D printable case is here: https://www.thingiverse.com/thing:5...
by arpruss
Wed Aug 24, 2022 3:44 pm
Forum: Projects
Topic: adb2usb for old Apple mice and keyboards
Replies: 2
Views: 4575

adb2usb for old Apple mice and keyboards

In case anybody is interested, I ported Szymon Lopaciuk's adb2usb project to use the libmaple stm32f1 core and my USBComposite library, as well as optimizing it a little, and making the timing work better on counterfeit blue pills (using CYCCNT instead of delayMicroseconds(), since delayMicroseconds...
by arpruss
Mon Jan 24, 2022 3:12 pm
Forum: General discussion
Topic: USBComposite: Nintendo Switch Controller
Replies: 2
Views: 4362

Re: USBComposite: Nintendo Switch Controller

BTW, does anybody here own a GameCube USB adapter, either a Nintendo or a Mayflash one? If so, would they be able to send me a dump of its USB HID data (either with https://github.com/todbot/win-hid-dump or with https://www.systutorials.com/docs/linux ... bhid-dump/)?
by arpruss
Sat Jan 22, 2022 3:11 am
Forum: Projects
Topic: GameCube controller for Nintendo Switch
Replies: 1
Views: 2560

GameCube controller for Nintendo Switch

I have added Switch controller emulation to my massive GameCube controller adapter project: https://github.com/arpruss/GameControllersSTM32 The project now lets you use a GameCube controller and/or a Wii Nunchuck as an XBox360 controller, a variety of various binds of standard joystick based control...
by arpruss
Fri Jan 21, 2022 3:07 am
Forum: General discussion
Topic: USBComposite: Nintendo Switch Controller
Replies: 2
Views: 4362

USBComposite: Nintendo Switch Controller

I've just added a Nintendo Switch Controller to the library. It's pretty straightforward to use. It's based on the HORIPAD USB descriptor because the Switch Pro Controller is too complicated. As a result, it doesn't support gyros, and the joystick resolution is 8-bit instead of 16-bit (which is fine...
by arpruss
Fri Jan 21, 2022 3:04 am
Forum: General discussion
Topic: USB Composite + Roger Clark's Core, Serial over USB
Replies: 20
Views: 9238

Re: USB Composite + Roger Clark's Core, Serial over USB

If all you want is a single serial stream over USB, you should just use Serial, instead of USBComposite. USBComposite is overkill for that.

Go to advanced search