arduino-motorfocus icon indicating copy to clipboard operation
arduino-motorfocus copied to clipboard

Several updates to enable use on Sparkfun Pro Micro

Open jvanderk opened this issue 3 years ago • 4 comments

Trying to use the code on a Sparkfun Pro Micro clone, I ran into several issues:

  1. serialEvent was not called automatically after loop().
  2. SoftwareSerial had a compilation issue related to the assembly in there.
  3. An issue with temperature string formatting.

Made changes to code and added some documentation and a choice to platformio.ini

I'm going to try to submit the changes using a pull request but I've never done that so bear with me....

jvanderk avatar Dec 07 '21 22:12 jvanderk

I think I created a pull request but not sure how to link that to this issue.

jvanderk avatar Dec 07 '21 22:12 jvanderk

Thanks! I will take a look at it tomorrow :)

fehlfarbe avatar Dec 07 '21 23:12 fehlfarbe

I think I can't push my changes on your pull request but I created a new branch promicro with your changes and added some new environments for different configs to platformio.ini. There is a patched version of SoftwareSerial on Github, so I'm using this repo for SoftwareSerial so other users don't have to modify the lib.

Can you take a look at it?

fehlfarbe avatar Dec 08 '21 19:12 fehlfarbe

Cool!

Tested

# Sparkfun ProMicro
[env:promicro16]
[env:promicro16_debug]

environments and both seem to work (manual buttons and ekos controlled).

Patched version of SoftwareSerial is OK.

Typo in (Pro Mirco) 4. Select the right config for your microcontroller e.g. nanoatmega328for Arduino Nano with 28BYJ-48 stepper,promicro16for Sparkfun Pro Mirco with 28BYJ-48 stepper ornanoatmega328_A988driver for Arduino Nano with A4988driver support in the bottom bar and upload to your Arduino (PlatformIO will download needed libraries automatically)

Still in a maze on the pull request workflow :--)

signal-2021-12-08-205847_001

jvanderk avatar Dec 08 '21 19:12 jvanderk