// Libraries ---------------------------------------------------------------- /** Arduino.h includes many items for the Arduino-environement. * No need for guarding against multiple library inclusions in the Arduino * environement. * * Arduino capabilities & items listed by ChatGPT: * * What Arduino.h Provides (Core Arduino API): * * === Types & Macros === * - boolean, byte, word * - HIGH, LOW * - INPUT, OUTPUT, INPUT_PULLUP * - PI, HALF_PI, TWO_PI, DEG_TO_RAD, RAD_TO_DEG * * === Timing Functions === * - millis(), micros() * - delay(), delayMicroseconds() * - yield() * * === Pin Control === * - pinMode(), digitalWrite(), digitalRead() * - analogWrite(), analogRead(), analogReference() * * === Bit Manipulation === * - bitRead(), bitWrite(), bitSet(), bitClear() * - lowByte(), highByte() * * === Serial & Stream I/O === * - Serial, Serial1, etc. * - print(), println(), read(), available(), etc. * * === Math Utilities === * - abs(), constrain(), map(), min(), max() * - round(), sq(), sqrt() * * === String Support === * - String class and methods (length(), substring(), indexOf(), etc.) * * === Random Numbers === * - random(), randomSeed() * * === Interrupts === * - attachInterrupt(), detachInterrupt() * * === Type Aliases === * - uint8_t, int16_t, uint32_t, etc. (from ) * * === Program Memory (AVR) === * - PROGMEM, F(), pgm_read_byte(), etc. * * === Board-Specific Additions === * - ESP, SAMD, etc. may add features like ESP.getFreeHeap(), etc. */ #pragma once #include #include // For convenient printouts to Serial // #include not neccessary #include #ifndef SERIAL_BAUDRATE #define SERIAL_BAUDRATE 74880 #endif #ifndef MAX_MESSAGE_LENGTH #define MAX_MESSAGE_LENGTH 250 #endif #ifndef MAX_DISPLAY_WIDTH #define MAX_DISPLAY_WIDTH 21 // 21 chars, including the \0 terminator #endif