File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
examples/raspberry_pi/blink Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3939#include " ArduinoAPI.h"
4040#include " ArdStdio.h"
4141#include " ArduinoLogger.h"
42- #include " HardwareSetup.h"
4342#include " Serial.h"
4443#include " RemoteSerial.h"
45-
44+ #include " HardwareSetup.h"
45+ #ifdef USE_RPI
46+ # include " HardwareSetupRPI.h"
47+ #endif
4648using namespace arduino ;
Original file line number Diff line number Diff line change 55#include " HardwareI2C_RPI.h"
66#include " HardwareSPI_RPI.h"
77
8+ namespace arduino {
9+
810/* *
911 * @class HardwareSetupRPI
1012 * @brief Sets up hardware interfaces for Raspberry Pi (GPIO, I2C, SPI).
@@ -61,4 +63,6 @@ class HardwareSetupRPI {
6163 */
6264static HardwareSetupRPI RPI;
6365
66+ } // namespace arduino
67+
6468#endif
Original file line number Diff line number Diff line change 33int LED_BUILTIN = 13 ; // Define the built-in LED pin (usually pin 13 on Arduino boards)
44
55void setup () {
6+ Serial.begin (115200 ); // Start serial communication at 115200 baud
67 pinMode (LED_BUILTIN, OUTPUT); // Initialize the LED pin as output
78}
89
You can’t perform that action at this time.
0 commit comments