Pico-Arduino
Arduino.h
1 #pragma once
2 
3 /*
4  Arduino.h - Main include file for the Arduino SDK
5  Copyright (c) 2005-2013 Arduino Team. All right reserved.
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef HOST
20 #define HOST
21 #endif
22 
23 #include <stdint.h>
24 #include "pins_arduino.h"
25 #include "ArduinoAPI.h"
26 #include "PicoLogger.h"
27 #include "PicoHardwareSerial.h"
28 #include "PicoHardwareSPI.h"
29 #include "PicoGPIOFunction.h"
30 //#include "PicoHardwareI2C.h"
31 #include "PicoTone.h"
32 #include "PicoTimer.h"
33 #include "PicoThread.h"
34 #include "PicoSemaphore.h"
35 #include "PicoMulticoreFifo.h"
36 #include "PicoQueue.h"
37 #include "pico/stdlib.h"
38 #include "hardware/gpio.h"
39 #include "hardware/adc.h"
40 #include "hardware/pwm.h"
41 
42 // global variables
43 extern PicoDefaultSerial Serial; // pico_stdio
44 extern PicoHardwareSerial Serial1;
45 extern PicoHardwareSerial Serial2;
46 extern PicoLogger Logger; // Support for logging
47 extern PicoGPIOFunction GPIOFunction;
48 // Pico specific global methods
49 // Provides the on board temperature in Celsius
50 int getTemperature();
PicoDefaultSerial is using the pico default output. It is mapped to the Arduino Serial variable.
Definition: PicoHardwareSerial.h:17
The pico requires that the function of the pin is defined. In Arduino, there is no such concept: so w...
Definition: PicoGPIOFunction.h:28
Serial Stream for a defined UART. By default we use the following pins: UART0 tx/rx = gp0/gp1; UART1 ...
Definition: PicoHardwareSerial.h:93
A simple Logger that writes messages dependent on the log level.
Definition: PicoLogger.h:10