From 53fa2145473702b51b39421b3369d4b8a32bdf51 Mon Sep 17 00:00:00 2001 From: Jeff-Haas Date: Thu, 13 Apr 2017 23:21:34 -0700 Subject: [PATCH] Updates for current Arduino IDE Fixes bugs with AVR PROGMEM changes, introduced when Arduino IDE went to 1.6.x. See details at: https://github.com/arduino/Arduino/wiki/1.6-Frequently-Asked-Questions#errors-related-to-avr-progmem-changes --- .../{BasicAnimations.pde => BasicAnimations.ino} | 2 +- examples/UsingProgmem/{UsingProgmem.pde => UsingProgmem.ino} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename examples/BasicAnimations/{BasicAnimations.pde => BasicAnimations.ino} (94%) rename examples/UsingProgmem/{UsingProgmem.pde => UsingProgmem.ino} (96%) diff --git a/examples/BasicAnimations/BasicAnimations.pde b/examples/BasicAnimations/BasicAnimations.ino similarity index 94% rename from examples/BasicAnimations/BasicAnimations.pde rename to examples/BasicAnimations/BasicAnimations.ino index cd2643d..886f35c 100644 --- a/examples/BasicAnimations/BasicAnimations.pde +++ b/examples/BasicAnimations/BasicAnimations.ino @@ -40,7 +40,7 @@ void loop() Plays an animation in the "background". Don't call Tlc.update() while this is running. You can check if this is done with !tlc_onUpdateFinished */ - tlc_playAnimation(ani_arduino, ANI_ARDUINO_FRAMES, 3); + tlc_playAnimation(ani_arduino, ANI_ARDUINO_FRAMES, 3); // Default is 3 // If you don't want to do anything until it's finished, use: diff --git a/examples/UsingProgmem/UsingProgmem.pde b/examples/UsingProgmem/UsingProgmem.ino similarity index 96% rename from examples/UsingProgmem/UsingProgmem.pde rename to examples/UsingProgmem/UsingProgmem.ino index 6a4d7de..3aa0b17 100644 --- a/examples/UsingProgmem/UsingProgmem.pde +++ b/examples/UsingProgmem/UsingProgmem.ino @@ -24,7 +24,7 @@ The pattern below will only work with 1 TLC. Copy + Paste the 4 lines inside the curly brackets for each additional TLC. */ -uint8_t gsArray1[NUM_TLCS * 24] PROGMEM = { +const uint8_t gsArray1[NUM_TLCS * 24] PROGMEM = { GS_DUO((4095 * 16)/16, (4095 * 15)/16), GS_DUO((4095 * 14)/16, (4095 * 13)/16), GS_DUO((4095 * 12)/16, (4095 * 11)/16), GS_DUO((4095 * 10)/16, (4095 * 9)/16), GS_DUO((4095 * 8)/16, (4095 * 7)/16), GS_DUO((4095 * 6)/16, (4095 * 5)/16),