Skip to content

Commit b370561

Browse files
authored
Merge pull request #27 from milnepe/samd21
Add support for SAMD21 MCU boards
2 parents 5af0a78 + f64da60 commit b370561

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/compile-examples.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
- fqbn: arduino:sam:arduino_due_x_dbg
5555
platforms: |
5656
- name: arduino:sam
57+
type: arduino
58+
- fqbn: arduino:samd:mkrzero
59+
platforms: |
60+
- name: arduino:samd
5761
5862
# Make board type-specific customizations to the matrix jobs
5963
include:

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ sentence=Allows drawing text, images, and shapes on the Arduino TFT graphical di
66
paragraph=This library is compatible with most of the TFT displays based on the ST7735 chipset.
77
category=Display
88
url=http://www.arduino.cc/en/Reference/TFTLibrary
9-
architectures=avr,sam
9+
architectures=avr,sam,samd

src/utility/Adafruit_ST7735.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class Adafruit_ST7735 : public Adafruit_GFX {
140140
SPISettings spisettings;
141141
#endif
142142
#if defined(ARDUINO_ARCH_SAM) || defined(__ARDUINO_ARC__) || \
143-
defined(ARDUINO_ARCH_STM32)
143+
defined(ARDUINO_ARCH_STM32) || defined(ARDUINO_ARCH_SAMD)
144144
volatile uint32_t *dataport, *clkport, *csport, *rsport;
145145
uint32_t _cs, _rs, _rst, _sid, _sclk,
146146
datapinmask, clkpinmask, cspinmask, rspinmask,

src/utility/glcdfont.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#if !defined(ARDUINO_ARCH_SAM) && !defined(__ARDUINO_ARC__) && \
2-
!defined(ARDUINO_ARCH_STM32)
2+
!defined(ARDUINO_ARCH_STM32) && !defined(ARDUINO_ARCH_SAMD)
33
#include <avr/io.h>
44
#endif
55
#include <avr/pgmspace.h>

0 commit comments

Comments
 (0)