if I'm building locally do I need to do anything specific to check this? Does it update itself automatically? I'm using a combination of Cores and Photons by the way. Thanks
Iām running CLI 1.29.0 - I guess I have two questions
- How do I know what version of system firmware my device is running if they are in the field and canāt be connected by USB to Putty
- Is 0.6.1 even available for CLI building yet?
Hmm, 0.7.0 is the default verision CLI would target, so the "yet" puzzles me a bit
However, you can build for any target version - even pre-release ones - by adding the --target #.#.#
switch.
Hi @ScruffR Iām confused - it sounds like I should be targeting 0.7.0 with CLI 1.29.0 then, so I donāt know why Iām getting the error
"theme does not name a type"
unless the code @jack4566 posted is not complete somehow or needs to be put in a specific place?
What is your exact build command?
Can you post your complete code?
LEDSystemTheme theme; // Enable custom theme
theme.setColor(LED_SIGNAL_NETWORK_ON, RGB_COLOR_WHITE);
theme.apply(); // Apply theme settings
void setup() {
}
void loop() {
}
āparticle compile core .ā
These lines are "active" code which can only exist inside a function.
so to expand that:
LEDSystemTheme theme; // Enable custom theme
void setup() {
theme.setColor(LED_SIGNAL_NETWORK_ON, RGB_COLOR_WHITE);
theme.apply(); // Apply theme settings
}
void loop() {
}
Thatās brilliant @BulldogLowell and @ScruffR, it compiles now, please excuse my ignorance.
The only problem isā¦it has no effect! Core still happily breathing cyan! Iām tempted to try it on a Photon to see if thatās the problemā¦
@Dave or @rickkas7 - unfortunately my Photon is on loan it turns out - are you able to advise if the Core is compatible with the LED Signalling feature?
Thanks
Hi @netpex,
I donāt know off the top of my head about the theme stuff, but the RGB.control stuff should work: https://docs.particle.io/reference/firmware/core/#rgb
it definitely works on photon:
LEDSystemTheme theme; // Enable custom theme
void setup() {
theme.setColor(LED_SIGNAL_CLOUD_CONNECTED, RGB_COLOR_WHITE); // breathes white when cloud connected
theme.apply(); // Apply theme settings
}
void loop() {
}
Further down the page
it is very much implied the signalling theme stuff should work on the Core. Hmmmmm. Not sure what to try. This isn't urgent but if anyone has a Core and a few minutes would they mind trying some code on their device if I post it? See if it works for them?
If you posted the code, someone couldāve already tried, rather than waiting for an āI could try itā
Sorry @Moors7, the exact code is the working-for-Photon code BulldogLowell posted
It's definitely not working for my Core.
Just to be uber clear, THIS is the code:
LEDSystemTheme theme; // Enable custom theme
void setup() {
theme.setColor(LED_SIGNAL_CLOUD_CONNECTED, RGB_COLOR_WHITE); // breathes white when cloud connected
theme.apply(); // Apply theme settings
}
void loop() {
}
Before proceding with that weād need a confirmation of @Dave (or @rickkas7 if he knows) whether the theming is supposed to work at all on Coreās.
If it should but doesnāt then thatād be bound to be an issue to be looked into.
You could maybe backtrack system versions whether there was one where it worked and where it broke.
However, when the compiler doesnāt puke at the code, it should work IMO.
Unfortunaltely I canāt do any Core tests anymore - someone else got my Cores now
Given that itās a documented Core feature surely it should be intended to work? Unless the documentation was erroneously copy pastaād from the Photon?
OK! I just tested this on my core, and itās now breathing white when cloud connected as expected:
Thanks,
David
Thanks @David - sorry for the faff - must be something going on at my end then. Iāll see what I can find outā¦