Skip to content

Commit 64a94cf

Browse files
authored
Merge pull request #1870 from ladyada/master
Fix CI
2 parents 7c04b66 + 54e04a8 commit 64a94cf

File tree

32 files changed

+105
-90
lines changed

32 files changed

+105
-90
lines changed

2020_shake/2020.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# SPDX-FileCopyrightText: 2020 Limor Fried for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
1+
// SPDX-FileCopyrightText: 2020 Limor Fried for Adafruit Industries
2+
//
3+
// SPDX-License-Identifier: MIT
44

55
#define BITMAP_WIDTH 64
66
#define BITMAP_HEIGHT 32

2020_shake/2020_shake.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# SPDX-FileCopyrightText: 2020 Limor Fried for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
1+
// SPDX-FileCopyrightText: 2020 Limor Fried for Adafruit Industries
2+
//
3+
// SPDX-License-Identifier: MIT
44

55
#include <Adafruit_LIS3DH.h> // For accelerometer
66
#include <Adafruit_PixelDust.h> // For simulation

2020_shake/2021.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# SPDX-FileCopyrightText: 2020 Limor Fried for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
1+
// SPDX-FileCopyrightText: 2020 Limor Fried for Adafruit Industries
2+
//
3+
// SPDX-License-Identifier: MIT
44

55
const uint8_t PROGMEM bitmap_2021[] = {
66
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

3D_Printed_Daft_Punk_Helmet/3D_Printed_Daft_Punk_Helmet-Front-Animation.ino renamed to 3D_Printed_Daft_Punk_Helmet/3D_Printed_Daft_Punk_Helmet-Front-Animation/3D_Printed_Daft_Punk_Helmet-Front-Animation.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct {
2626
long fade; // Decreases brightness as wave moves
2727

2828
// Gamma correction improves appearance of midrange colors
29-
uint8_t gamma[] PROGMEM = {
29+
const uint8_t gamma[] PROGMEM = {
3030
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3131
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1,
3232
1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2,

Adafruit_Prop_Maker_FeatherWing/Prop_Maker_LED_Simpletest/Prop_Maker_LED_Simpletest.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
* Rainbow swirl example for 3W LED.
66
*/
77

8-
#if defined(__SAMD21G18A__) || defined(__AVR_ATmega32U4__)
8+
#ifdef USE_TINYUSB // For Serial when selecting TinyUSB
9+
#include <Adafruit_TinyUSB.h>
10+
#endif
11+
12+
#if defined(__SAMD21G18A__) || defined(__AVR_ATmega32U4__) || defined(NRF52840_XXAA)
913
// No green PWM on 32u4
1014
#define POWER_PIN 10
1115
#define RED_LED 11

Adafruit_Prop_Maker_FeatherWing/Prop_Maker_NeoPixel_Simpletest/Prop_Maker_NeoPixel_Simpletest.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
*/
77
#include <Adafruit_NeoPixel.h>
88

9+
#ifdef USE_TINYUSB // For Serial when selecting TinyUSB
10+
#include <Adafruit_TinyUSB.h>
11+
#endif
12+
913
// NeoPixel strip length, in pixels
1014
#define NUM_PIXELS 30
1115

12-
#if defined(__SAMD21G18A__) || defined(__AVR_ATmega32U4__)
16+
#if defined(__SAMD21G18A__) || defined(__AVR_ATmega32U4__) || defined(NRF52840_XXAA)
1317
#define NEOPIXEL_PIN 5
1418
#define POWER_PIN 10
1519
#elif defined(__AVR_ATmega328P__)

Adafruit_Prop_Maker_FeatherWing/Prop_Maker_Switch_Simpletest/Prop_Maker_Switch_Simpletest.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
* Print to the Serial Montior when a switch is pressed.
66
*/
77

8-
#if defined(__SAMD21G18A__) || defined(__AVR_ATmega32U4__)
8+
#ifdef USE_TINYUSB // For Serial when selecting TinyUSB
9+
#include <Adafruit_TinyUSB.h>
10+
#endif
11+
12+
#if defined(__SAMD21G18A__) || defined(__AVR_ATmega32U4__) || defined(NRF52840_XXAA)
913
#define SWITCH_PIN 9
1014
#elif defined(__AVR_ATmega328P__)
1115
#define SWITCH_PIN 9

Flora_Citi_Bike_Helmet/Citi_Bike_Helmet/Citi_Bike_Helmet.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LSM303 compass;
2222

2323
#define LAT_LON_SIZE 311
2424

25-
float lat_lon[LAT_LON_SIZE][2] PROGMEM = {
25+
const float lat_lon[LAT_LON_SIZE][2] PROGMEM = {
2626
{40.767272, -73.993928},
2727
{40.719115, -74.006666},
2828
{40.711174, -74.000165},
@@ -475,7 +475,7 @@ void loop() // run over and over again
475475
//Serial.print("Altitude: "); Serial.println(GPS.altitude);
476476
//Serial.print("Satellites: "); Serial.println((int)GPS.satellites);
477477
compass.read();
478-
int heading = compass.heading((LSM303::vector){0,-1,0});
478+
int heading = compass.heading((LSM303::vector<int16_t>){0,-1,0});
479479
Serial.print("Heading: ");
480480
Serial.println(heading);
481481
if ((calc_bearing(fLat, fLon, targetLat, targetLon) - heading) > 0) {
@@ -639,8 +639,8 @@ unsigned long calc_dist(float flat1, float flon1, float flat2, float flon2)
639639
int find_closest_location(float current_lat, float current_lon)
640640
{
641641
int closest = 0;
642-
unsigned long minDistance = -1;
643-
unsigned long tempDistance;
642+
signed long minDistance = -1;
643+
signed long tempDistance;
644644
for (int i=0; i < LAT_LON_SIZE; i++) {
645645
float target_lat = pgm_read_float(&lat_lon[i][0]);
646646
float target_lon = pgm_read_float(&lat_lon[i][1]);
@@ -729,7 +729,7 @@ void GoForward (uint32_t c, uint8_t wait) {
729729

730730
// Slightly different, this makes the rainbow equally distributed throughout
731731
void rainbowCycle(uint8_t wait) {
732-
uint16_t i, j;
732+
uint16_t i;
733733

734734
//for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel
735735
for(i=0; i< 10; i++) {

Joy_of_Arcada/Joy_of_Arcada.ino

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void setup() {
134134
// in which they are initialized. HID MUST be initialized before
135135
// Serial, which must be initialized before the display.
136136

137-
int status = arcada.begin(); // Save status for Serial print later
137+
int status = arcada.arcadaBegin(); // Save status for Serial print later
138138

139139
// HID (keyboard) initialization
140140
usb_hid.setPollInterval(2);
@@ -157,7 +157,7 @@ void setup() {
157157
// Display initialization. This is all part of the persnickety sequence!
158158
arcada.displayBegin();
159159
arcada.setBacklight(255);
160-
arcada.fillScreen(ARCADA_BLACK);
160+
arcada.display->fillScreen(ARCADA_BLACK);
161161

162162
// Audio initialization
163163
AudioMemory(10);
@@ -192,10 +192,10 @@ void setup() {
192192
}
193193

194194
// At start, draw the entire blank/neutral face centered on screen
195-
arcada.fillScreen(ARCADA_BLACK); // Erase any warnBoxes first
196-
arcada.drawRGBBitmap(
197-
(arcada.width() - FACE_WIDTH ) / 2,
198-
(arcada.height() - FACE_HEIGHT) / 2,
195+
arcada.display->fillScreen(ARCADA_BLACK); // Erase any warnBoxes first
196+
arcada.display->drawRGBBitmap(
197+
(arcada.display->width() - FACE_WIDTH ) / 2,
198+
(arcada.display->height() - FACE_HEIGHT) / 2,
199199
(uint16_t *)face, FACE_WIDTH, FACE_HEIGHT);
200200

201201
// Create an offscreen framebuffer that's just the bounding
@@ -426,7 +426,7 @@ void loop() {
426426
// while a screen update is currently in progress. (This is assuming
427427
// SPI DMA is enabled in Adafruit_SPITFT.h. If it is not, that's OK,
428428
// this function call simply compiles to nothing in that case.)
429-
arcada.dmaWait();
429+
arcada.display->dmaWait();
430430

431431
if(openRows) {
432432
// Draw the open section of the eyes, then draw the pupils on top
@@ -484,7 +484,7 @@ void loop() {
484484
// is used...this is fastest as it can continue in the background
485485
// (while we process input on the next frame).
486486
arcada.blitFrameBuffer(
487-
(arcada.width() - FACE_WIDTH ) / 2 + 13,
488-
(arcada.height() - FACE_HEIGHT) / 2 + 25,
487+
(arcada.display->width() - FACE_WIDTH ) / 2 + 13,
488+
(arcada.display->height() - FACE_HEIGHT) / 2 + 25,
489489
false, true); // Non-blocking, big-endian
490490
}

MIDI_FeatherWing/.magtag.test.skip

Whitespace-only changes.

MIDI_FeatherWing/.monster_m4sk.test.skip

Whitespace-only changes.

MIDI_FeatherWing/.trinket_3v.test.skip

Whitespace-only changes.

MIDI_FeatherWing/.trinket_5v.test.skip

Whitespace-only changes.

0 commit comments

Comments
 (0)