Activity › Forums › Questions & Troubleshooting › Issue “Select Board” despite board being selected.
-
Issue “Select Board” despite board being selected.
-
Is there an issue with this post? Why is it blank?
-
Since the website appears to have issues rendering the post, here is the post:
Hi,
I’m following the tutorial for the Controllino Micro, but I’m running into an issue on macOS when selecting Tools → Board in the Arduino IDE.
I’ve installed the required libraries, and the IDE shows Controllino Micro as the selected board. However, when compiling I get the following error:
#error Please, select one of the CONTROLLINO variants in Tools->Board
Is this a known issue on macOS?
As a workaround, I tried manually defining <code inline=””>CONTROLLINO_MICRO in the code with:
#define CONTROLLINO_MICRO
but that doesn’t resolve the problem either.
Here’s the full script I’m using:
// #define CONTROLLINO_MICRO #include <SPI.h> #include <Controllino.h> void setup() { pinMode(CONTROLLINO_MICRO_AI0, INPUT); Serial.begin(115200); } void read_analog_sensor() { int rawValue = analogRead(CONTROLLINO_MICRO_AI0); // Convert raw ADC (0–1023) to voltage (0–10 V range at the terminal) float voltage = (rawValue / 1023.0) * 3.3; Serial.print("Raw ADC value: "); Serial.print(rawValue); Serial.print(" Voltage at AI0: "); Serial.print(voltage, 2); // 2 decimals Serial.println(" V"); } void loop() { read_analog_sensor(); }
Viewing 1 - 2 of 2 replies
Log in to reply.