Pico-Arduino
Arduino.h
1 #pragma once
2 
9 #ifndef HOST
10 #define HOST
11 #endif
12 
13 #include <stdint.h>
14 #include <stdlib.h>
15 #include "pins_arduino.h"
16 #include "ArduinoAPI.h"
17 #include "PicoLogger.h"
18 #include "PicoHardwareSerial.h"
19 #include "PicoHardwareSPI.h"
20 #include "PicoGPIOFunction.h"
21 #include "PicoTone.h"
22 #include "PicoTimer.h"
23 #include "PicoThread.h"
24 #include "PicoSemaphore.h"
25 #include "PicoMulticoreFifo.h"
26 #include "PicoQueue.h"
27 #include "pico/stdlib.h"
28 #include "hardware/gpio.h"
29 #include "hardware/adc.h"
30 #include "hardware/pwm.h"
31 
32 // Global variables
33 extern PicoDefaultSerial Serial; // pico_stdio
34 extern PicoHardwareSerial Serial1;
35 extern PicoHardwareSerial Serial2;
36 extern PicoLogger Logger; // Support for logging
37 extern PicoGPIOFunction GPIOFunction;
38 
39 // Pico specific global methods
40 // Provides the on board temperature in Celsius
41 int getTemperature();
42 // Some Arduino libraries rely on the following
43 char *dtostrf (double __val, signed char __width, unsigned char __prec, char *__s);
44 char *dtostre (double __val, char *__s, unsigned char __prec, unsigned char __flags);
45 
PicoDefaultSerial is using the pico default output. It is mapped to the Arduino Serial variable.
Definition: PicoHardwareSerial.h:18
The pico requires that the function of the pin is defined. In Arduino, there is no such concept: so w...
Definition: PicoGPIOFunction.h:31
Serial Stream for a defined UART. By default we use the following pins: UART0 tx/rx = gp0/gp1; UART1 ...
Definition: PicoHardwareSerial.h:102
A simple Logger that writes messages dependent on the log level.
Definition: PicoLogger.h:12