実際のところ
#include <Arduino.h> #include <M5Stack.h> // put function declarations here: int myFunction(int, int); int result; void setup() { // put your setup code here, to run once: M5.begin(); M5.Lcd.setTextColor(WHITE); M5.Lcd.setTextSize(2); M5.Lcd.setCursor(10, 30); M5.Lcd.fillScreen(0x0000); result = myFunction(2, 3); M5.Lcd.print("Result: "); M5.Lcd.println(result); } void loop() { // put your main code here, to run repeatedly: } // put function definitions here: int myFunction(int x, int y) { return x + y; }