[DIY] AtmoOrb - A Hue like mood lamp based on Particle Photon with NeoPixel - *Tutorial added* (2 Viewers)

Angst

Portal Member
November 14, 2016
10
2
47
Home Country
South Africa South Africa
Picked up a second Photon/Neopixel: Followed exact procedure as the first one; but today the code won't verify/compile. Tried several times; same error:

Any ideas? :(

Edit: Opened the saved project from yesterday; tried a verify on that, and it failed as well. :confused:

Error: Could not compile. Please review your code.

32+0 records in
32+0 records out
32 bytes (32 B) copied, 0.000572919 s, 55.9 kB/s
4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.0455755 s, 0.1 kB/s
In file included from lib/FastLED/src/FastLED/FastLED.h:1:0,
from /src/atmoorb.cpp:3:
lib/FastLED/src/FastLED/../FastLED.h:12:2: warning: #warning FastLED version 3001000 (Not really a warning, just telling you here.) [-Wcpp]
#warning FastLED version 3001000 (Not really a warning, just telling you here.)
^
In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED/../FastLED.h:34,
from lib/FastLED/src/FastLED/FastLED.h:1,
from /src/atmoorb.cpp:3:
lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from /src/atmoorb.cpp:2:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED/../FastLED.h:34,
from lib/FastLED/src/FastLED/FastLED.h:1,
from /src/atmoorb.cpp:3:
lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from /src/atmoorb.cpp:2:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED/../FastLED.h:34,
from lib/FastLED/src/FastLED/FastLED.h:1,
from /src/atmoorb.cpp:3:

lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:36:32: error: conflicting declaration 'typedef volatile uint8_t RwReg'
typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile unsigned int) */
^
In file included from ./inc/application.h:92:0,
from /src/atmoorb.cpp:2:

../wiring/inc/spark_wiring_arduino.h:153:27: error: 'RwReg' has a previous declaration as 'typedef volatile uint32_t RwReg'
typedef volatile uint32_t RwReg;
^
make[2]: *** [../build/target/user/platform-0-lsrc/atmoorb.o] Error 1
make[1]: *** [user] Error 2
make: *** [main] Error 2
 
Last edited:

Rick164

MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Most likely it's a firmware issue on the Photon if the sketch worked on the other one, would compare both to see if they run the latest and if not update its firmware manually.
    Under Devices you can find each device firmware:

    photon_orbs.PNG


    If that is the same version check the FastLED library, just verified it with FastLED 3.1.5 which is the most recent there.
     

    Angst

    Portal Member
    November 14, 2016
    10
    2
    47
    Home Country
    South Africa South Africa
    @Rick164, a brief check reveals that both units are on fw. 0.6.0. (I was expecting dissimilar firmwares)

    Tried re-flashing both units with both new project and saved .ino from yesterday - in all cases code fails to compile via Web IDE
    FastLed 3.1.5 included in project.
    All actions done on same notebook as yesterday.

    It's so strange; especially if you've just managed to verify and compile a test sample of the code. :eek:

    Nothing odd in the project below, all lines of code accounted for; except the errors.

    5AP1CBc.jpg
     

    Angst

    Portal Member
    November 14, 2016
    10
    2
    47
    Home Country
    South Africa South Africa
    Hi @Rick164

    Had some time to return to this: I can compile other projects successfully; however NEW SKETCH > include FASTLED > Copy/Paste AtmoOrb_UDP.ino does not want to verify/compile.
    In fact, any project, even simply including FASTLED on it's own in an empty test sketch doesn't verify!

    // This #include statement was automatically added by the Particle IDE.
    #include <FastLED.h>
    void setup() {
    }
    void loop() {
    }

    Results in: "Error: Could not compile. Please review your code."

    lib/FastLED/src/led_sysdefs_arm_stm32.h:36:32: error: conflicting declaration 'typedef volatile uint8_t RwReg'
    typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile unsigned int) */
    ^
    In file included from ./inc/application.h:92:0,
    from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
    from lib/FastLED/src/led_sysdefs.h:16,
    from lib/FastLED/src/FastLED.h:34,
    from /src/test.cpp:2:

    ../wiring/inc/spark_wiring_arduino.h:153:27: error: 'RwReg' has a previous declaration as 'typedef volatile uint32_t RwReg'
    typedef volatile uint32_t RwReg;
    ^
    make[1]: *** [../build/target/user/platform-6src/test.o] Error 1
    make: *** Error 2

    Am I the only one getting this?
    Or has a change been made to the FASTLED (3.1.5) library which is causing a compile error in the particle Web IDE?
    Anyone else building on of these Photon/NeoPixel 24 ring units right now?


    @Lightning303 - Sorry to bother you as well; I'm wondering if you could offer an opinion/thoughts? Any feedback and ideas welcomed and appreciated.


    Full error dump below:

    In file included from lib/FastLED/src/FastLED/FastLED.h:1:0,
    from /src/atmoorb_udp.cpp:3:
    lib/FastLED/src/FastLED/../FastLED.h:12:2: warning: #warning FastLED version 3001000 (Not really a warning, just telling you here.) [-Wcpp]
    #warning FastLED version 3001000 (Not really a warning, just telling you here.)
    ^
    In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
    from lib/FastLED/src/FastLED/../FastLED.h:34,
    from lib/FastLED/src/FastLED/FastLED.h:1,
    from /src/atmoorb_udp.cpp:3:
    lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
    #define cli() __disable_irq(); __disable_fault_irq();
    ^
    In file included from ./inc/application.h:92:0,
    from /src/atmoorb_udp.cpp:2:
    ../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
    #define cli() (void)HAL_disable_irq()
    ^
    In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
    from lib/FastLED/src/FastLED/../FastLED.h:34,
    from lib/FastLED/src/FastLED/FastLED.h:1,
    from /src/atmoorb_udp.cpp:3:
    lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
    #define sei() __enable_irq(); __enable_fault_irq();
    ^
    In file included from ./inc/application.h:92:0,
    from /src/atmoorb_udp.cpp:2:
    ../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
    #define sei() HAL_enable_irq(0)
    ^
    In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
    from lib/FastLED/src/FastLED/../FastLED.h:34,
    from lib/FastLED/src/FastLED/FastLED.h:1,
    from /src/atmoorb_udp.cpp:3:

    lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:36:32: error: conflicting declaration 'typedef volatile uint8_t RwReg'
    typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile unsigned int) */
    ^
    In file included from ./inc/application.h:92:0,
    from /src/atmoorb_udp.cpp:2:

    ../wiring/inc/spark_wiring_arduino.h:153:27: error: 'RwReg' has a previous declaration as 'typedef volatile uint32_t RwReg'
    typedef volatile uint32_t RwReg;
    ^
    make[1]: *** ../build/target/user/platform-6src/atmoorb_udp.o Error 1
    make: *** user Error 2
     
    Last edited:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    There's something weird going on with the 0.6.0 and up firmwares from Photon, if you use 0.5.3 all sketches work perfectly :)
    If you want to use Photons with 0.6.0 we would need a FastLED update but dev isn't ready so far.

    Updated tutorial to reflect this so new users don't run into it, @Angst sorry for the delay and thanks for reporting it as it helped trace it back.
     

    Users who are viewing this thread

    Similar threads

    Hello guys , i have a little question about this project. I really want to use this project with the software "aurora" but i want to use it by USB connection (so without the ESP8266), and i'm wondering if it's possible. I plan to use it only with my computer so the USB is not a problem. I also plan to replace the LED by a LED strip ^^
    Hello guys , i have a little question about this project. I really want to use this project with the software "aurora" but i want...
    Hi, I would like to showcase a project of mine, that I have been working on for quite some time. What is it? AtmoOrb is a lamp...
    Replies
    50
    Views
    54K
    MP1 MP2 WS2812B DE
    // AtmoduinoV2 by NevCairiel, based on RickDB Atmoduino V1 #include <FastLED.h> // Set the number of leds in the strip. #define NUM_LEDS 188 // type of the LED controller #define LED_TYPE WS2812B // data and clock pins #define DATA_PIN 10 CRGB leds[NUM_LEDS]; void setup(){ Serial.begin(115200); FastLED.addLeds<LED_TYPE...
    // AtmoduinoV2 by NevCairiel, based on RickDB Atmoduino V1 #include <FastLED.h> // Set the number of leds in the strip. #define...
    Hello guys. For a long time now i was thinking of getting myself a new project :) Well recently i decided to start the ambilight...
    Replies
    14
    Views
    4K
    DC12V is the correct power. The LC8808 is a 3-channel constant current LED drive with resumable data transfers and internal display patterns. There are three open-drain constant current outputs, with a build-in PWM of gray scale. The range of input power is from +9V to +15V, and voltage-endurance of LED port is +12V. There is a...
    DC12V is the correct power. The LC8808 is a 3-channel constant current LED drive with resumable data transfers and internal...
    Introduction Over time there have been many Windows alternatives to Atmowin and under Linux there is Bobilight however there is...
    Replies
    352
    Views
    194K
    • Sticky
    @HomeY, never mind found my own answer by looking at close-up of the board on Amazon: pin 11 is marked as "~11" defined as being part of the digital PWM group that must be needed for AmbiBox software, but not for the FastLED.show() command during setup.
    @HomeY, never mind found my own answer by looking at close-up of the board on Amazon: pin 11 is marked as "~11" defined as being...
    First of all a BIG TNX to both Lightning303 & azzuro for helping me out setting this up properly. Since we already have a great...
    Replies
    21
    Views
    43K
    • Sticky
    Is this the right thread for downloading the latest version of Atmolight MP1? Extension Manager URL for Atmolight returns HTTP error. For AtmoWin the same. Thanks
    Is this the right thread for downloading the latest version of Atmolight MP1? Extension Manager URL for Atmolight returns HTTP...
    Overview AtmoLight is a process plugin that interfaces with different ambilight solutions and brings Ambilight to MediaPortal. The...
    Replies
    390
    Views
    110K
    Top Bottom