Newbie to the Playground - though loving its potential. Hopefully this is a simple fix and an idiocy on my part. I did a search and couldn't find anyone posting this question - but sorry if it is a repeat.
I want to read the temperature from the built in sensor using the Adafruit_CircuitPlayground.h library, but each time I include a line to do so, the Arduino compiler throws a series of warnings:
The code *IS* compiling, but I can't see what the cause of the warning can be. It is definitely something to do with the temperature() command, as this minimal program throws the warning as does the Hello_Temperature example - but programs like the blink and fidget spinner do not:/Users/mike/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 4 bytes
/Users/mike/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 4 bytes
/Users/mike/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 4 bytes
/Users/mike/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 4 bytes
/Users/mike/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 4 bytes
Sketch uses 38260 bytes (14%) of program storage space. Maximum is 262144 bytes.
Global variables use 4248 bytes (12%) of dynamic memory, leaving 28520 bytes for local variables. Maximum is 32768 bytes.
Code: Select all
#include <Adafruit_CircuitPlayground.h>
float temp;
void setup() {
CircuitPlayground.begin();
}
void loop() {
temp = CircuitPlayground.temperature();
delay(500);
}
(Running Arduino 1.8.13 and Adafruit Circuit Playground 1.11.3 on MacOS 11.6).
Thank-you in advance,
Mike.