Skip to content

Commit

Permalink
Fix hardware UART support for UNO R4 boards
Browse files Browse the repository at this point in the history
  • Loading branch information
vickash committed Aug 12, 2023
1 parent a50e9ed commit 5aa91e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions HARDWARE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
| :-------- | :------: | :--------------- |------ |
| ATSAM3X8E | :yellow_heart: | Due | Native USB port. Tone, and IR Out don't work.
| ATSAMD21 | :green_heart: | Zero, M0 Series, Some MKR & Nano | Native USB
| RA4M1 | :yellow_heart: | Uno R4 Minima, Uno R4 WiFi | IR Out and WS2812 unsupported. UART untested
| RA4M1 | :yellow_heart: | Uno R4 Minima, Uno R4 WiFi | IR and WS2812 libraries don't support this yet

### Arduino Networking

Expand Down Expand Up @@ -91,12 +91,12 @@
| I2C Bit Bang | :heart: | S | `I2C::BitBang` | Any pins
| SPI | :green_heart: | H | `SPI::Bus` | Predetermined pins from IDE
| SPI Bit Bang | :green_heart: | S | `SPI::BitBang` | Any pins
| UART | :green_heart: | H | `UART::Hardware` | Except Atmega328, ATmega168, RA4M1
| UART | :green_heart: | H | `UART::Hardware` | Except Atmega328, ATmega168
| UART Bit Bang | :green_heart: | S | `UART::BitBang` | Only ATmega328, ATmega168
| Maxim OneWire | :green_heart: | S | `OneWire::Bus` | No overdrive
| Infrared Emitter | :green_heart: | S | `PulseIO::IRTransmitter` | Except RA4M1
| Infrared Emitter | :green_heart: | S | `PulseIO::IRTransmitter` | Except SAM3X, RA4M1
| Infrared Receiver | :heart: | S | `PulseIO::IRReceiver` | Doable with existing library
| WS2812 | :green_heart: | S | See LED table | Except RP2040
| WS2812 | :green_heart: | S | See LED table | Except RP2040, RA4M1
| ESP32-PCNT | :heart: | H | - | Only ESP32. Pulse counter (for encoders)
| ESP32-MCPWM | :heart: | H | - | Only ESP32. Motor control PWM

Expand Down
4 changes: 4 additions & 0 deletions src/lib/DenkoDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
#elif defined(ESP8266) && defined(SERIAL_PORT_HARDWARE_OPEN)
#define DENKO_UARTS 1

// Define 1 UART for UNO R4 boards. Always use Serial1.
#elif defined(_RENESAS_RA_)
#define DENKO_UARTS 1

// This works for all the Atmel cores except RA4M1.
#else
#if defined(SERIAL_PORT_HARDWARE3)
Expand Down

0 comments on commit 5aa91e5

Please sign in to comment.