Search found 46 matches

by arpruss
Wed Nov 22, 2017 6:33 pm
Forum: Projects
Topic: Game port to USB adapter
Replies: 2
Views: 30

Re: Game port to USB adapter

I made a library for reading data from the PC game port, Wii Nunchuck and GameCube controllers, and moved the sketch into it as an example: https://github.com/arpruss/GameControllersSTM32
by arpruss
Wed Nov 22, 2017 6:22 am
Forum: Projects
Topic: Game port to USB adapter
Replies: 2
Views: 30

Game port to USB adapter

I have an old joystick with a game port interface, so I wrote a quick sketch to adapt it to USB with a black pill and my fork of the addMidiHID branch. The sketch includes the (very simple) wiring instructions. You can get a female gameport for $1 for five on aliexpress. Of course, one can buy a gam...
by arpruss
Thu Nov 16, 2017 2:11 pm
Forum: Code snipplets
Topic: EEPROM emulator for 8-bit data
Replies: 8
Views: 147

Re: EEPROM emulator for 8-bit data

It's a standard trick with flash memory that one can update 1s to 0s without erasing, so when I wrote the initial version of the code, I made use of that, so that variable changes that could be implemented by setting some bits to 0 wouldn't need writing to a new location. But the code wasn't working...
by arpruss
Thu Nov 16, 2017 1:58 pm
Forum: General discussion
Topic: I2C freezes the STM
Replies: 8
Views: 203

Re: I2C freezes the STM

dannyf wrote:
Sun Nov 12, 2017 2:27 pm
if your code uses SPL, it's not datasheet compliant - yes, ST's own code doesn't follow the datasheet
What is SPL?
by arpruss
Wed Nov 15, 2017 2:46 pm
Forum: Code snipplets
Topic: EEPROM emulator for 8-bit data
Replies: 8
Views: 147

EEPROM emulator for 8-bit data

I wanted to store some persistent data from time to time, but my data was just a single configuration byte. The libmaple core's EEPROM emulation code is designed for 16-bit storage and would involve using up four bytes to store that byte, which would mean that there would be one flash erase per 2.5K...
by arpruss
Tue Nov 14, 2017 1:32 am
Forum: STM32F103 Boards
Topic: Red Pill or Blue Pill?
Replies: 239
Views: 38258

Re: Red Pill or Blue Pill?

A better option now seems to be the Robot Dyn version which has a black coloured PCB, and has the correct USB pullup resistor (unlike the Blue and Red pill which both have the incorrect resistor resulting in USB connection issues for some people) The one downside of the Robot Dyn black pill over th...
by arpruss
Mon Nov 13, 2017 5:38 am
Forum: STM32F103 Boards
Topic: Red Pill or Blue Pill?
Replies: 239
Views: 38258

Re: Red Pill or Blue Pill?

RogerClark wrote:
Mon Nov 13, 2017 1:04 am
Which Black Pill ?

Robot Dyn or someone else ?
Someone else. It looks just like this one.
by arpruss
Mon Nov 13, 2017 12:22 am
Forum: STM32F103 Boards
Topic: Red Pill or Blue Pill?
Replies: 239
Views: 38258

Re: Red Pill or Blue Pill?

For comparison, on the black pills I've just looked at, there is no pad on the PCB on the top-side for the fins to be soldered to, but the fins go through the PCB and are soldered to the inside of the hole. They fins are almost exactly flush with the holes (I think they stick out just the tiniest am...
by arpruss
Thu Nov 09, 2017 3:27 am
Forum: General discussion
Topic: Is it time for a "Blue Pill" Board Entry?
Replies: 13
Views: 292

Re: Is it time for a "Blue Pill" Board Entry?

It wouldnt need a variant folder, but it would need a load of lines in boards.txt True, but if we adopted my quick and dirty template.py (I just updated the gist), these lines could be automatically generated from a pretty small number of boards.txt.template lines. E.g., I think the following might...
by arpruss
Wed Nov 08, 2017 5:43 pm
Forum: STLink
Topic: Are the stlink clones legal?
Replies: 1
Views: 178

Are the stlink clones legal?

I was thinking it would be nice to get one of the $2 stlink clones, but I'm worried that they may be using pirated firmware, and I don't want to support copyright infringement. Or does STM distribute firmware one can legally install on the stlink board?