Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial support for Arduino UNO R4 boards #365

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

KurtE
Copy link
Contributor

@KurtE KurtE commented Sep 16, 2023

The code is sort of a cross between several of the other ARM boards, like the Teensy T4 boards, plus setting up registers using code similar to what I did with the Servo library. Plus some other defines from what @facchinm did in the FastLED library to gain access to the ARM registers

Code was added in a new
#elif defined(ARDUINO_ARCH_RENESAS) || defined(ARDUINO_ARCH_RENESAS_UNO) || defined(ARDUINO_ARCH_RENESAS_PORTENTA)
section in the source file for the new boards,

So it should not impact other boards.

I was also tempted to throw in a #else section before ending the #if for ARM is:

#endif // ARM

  // END ARM ----------------------------------------------------------------

Probably like:

#else
#error Architecture not supported
#endif // ARM

So that other new ARM based boards would not compile without any errors or warnings, but not have any actual code to
implement them.

But decided that was a different issue

The code is sort of a cross between several of the other ARM
boards, like the Teensy T4 boards, plus setting up registers
using code similar to what I did with the Servo library.
Plus some other defines from what Martino Facchin did in the FastLED library to gain access to the ARM registers
@KurtE KurtE marked this pull request as ready for review September 16, 2023 20:05
@F-Schmidt99
Copy link

Dear Maintainers,

Could you please review and consider this merge request for adding NeoPixel library support for UNO R4? Existing libraries (or their forks to be exact) lack a seamless installation option via the Arduino IDE Library Manager, and this addition would greatly enhance user convenience.

Your approval and inclusion in the next library update would be highly appreciated.

Thank you for your time.

@metehoca
Copy link

Can't get this code to work. Trying "simple" example, changed lots of pins but no luck. Any ideas? R4 Minima.

@ladyada
Copy link
Member

ladyada commented Apr 24, 2024

ill merge but its not tested, would be great if someone can verify this works

@ladyada ladyada merged commit d39663e into adafruit:master Apr 24, 2024
1 check passed
@F-Schmidt99
Copy link

Setup:

  • Arduino UNO R4 Minima
  • 1x WS2813 connected to Pin D3 of Arduino
  • Software: Adafruit Neopixel in its current version downloaded and manually installed from this repo.
  • Program: Example-Sketch 'simple.ino'

Result:
The LED show very bright white color. setBrightness(...) or setColor(...) do not show any effect.
Not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants