I'm running the Arduino version of the Sensor Plotter and want to put a small image at the top of each screen without interfering with the line art.
I confirmed that the image shows up using the following code but I have to replace the entire sensor code block...
- Code: Select all | TOGGLE FULL SIZE
ImageReturnCode stat = arcada.drawBMP((char *)"/greek001.bmp", 110, 20);
Replaced the following code with that above:
- Code: Select all | TOGGLE FULL SIZE
else if (sensornum == 1) {
float t = bmp280.readTemperature() + 273.15;
data_buffer.push(t);
Serial.printf("Temp: %f\n", t);
plotBuffer(arcada.getCanvas(), "K",
data_buffer, data_buffer2, data_buffer3);
}
I want the "K" to be replaced with the bmp image. However, no matter where or how (using parentheses and other methods) I place the image code inside that block, I get syntax errors. Any ideas of how to integrate? Thanks!