arduino-audio-tools
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Enumerations | Functions | Variables
NoArduino.h File Reference

If you want to use the framework w/o Arduino you need to provide the implementation of a couple of classes and methods! More...

#include "AudioToolsConfig.h"
#include <ctype.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <chrono>
#include "driver/gpio.h"
#include "freertos/FreeRTOS.h"
#include "freertos/FreeRTOSConfig.h"

Go to the source code of this file.

Classes

class  Client
 
class  HardwareSerial
 
class  Print
 
class  Stream
 

Namespaces

namespace  audio_tools
 Generic Implementation of sound input and output for desktop environments using portaudio.
 

Macros

#define DESKTOP_MILLIS_DEFINED
 
#define HIGH   0x1
 
#define INPUT   0x0
 
#define INPUT_PULLUP   0x2
 
#define IS_NOARDUINO
 
#define LOW   0x0
 
#define OUTPUT   0x1
 
#define PI   3.14159265359f
 
#define PSTR(fmt)   fmt
 

Enumerations

enum  PrintCharFmt { DEC =10 , HEX =16 }
 

Functions

void delay (uint32_t ms)
 
void delayMicroseconds (uint32_t ms)
 
int digitalRead (int pin)
 e.g. for AudioActions
 
void digitalWrite (int pin, int value)
 
long map (long x, long in_min, long in_max, long out_min, long out_max)
 Maps input to output values.
 
uint64_t micros ()
 
uint32_t millis ()
 
void pinMode (int pin, int mode)
 

Variables

static HardwareSerial Serial
 

Detailed Description

If you want to use the framework w/o Arduino you need to provide the implementation of a couple of classes and methods!

Author
Phil Schatzmann
Version
0.1
Date
2022-09-19

Macro Definition Documentation

◆ DESKTOP_MILLIS_DEFINED

#define DESKTOP_MILLIS_DEFINED

◆ HIGH

#define HIGH   0x1

◆ INPUT

#define INPUT   0x0

◆ INPUT_PULLUP

#define INPUT_PULLUP   0x2

◆ IS_NOARDUINO

#define IS_NOARDUINO

◆ LOW

#define LOW   0x0

◆ OUTPUT

#define OUTPUT   0x1

◆ PI

#define PI   3.14159265359f

◆ PSTR

#define PSTR (   fmt)    fmt

Enumeration Type Documentation

◆ PrintCharFmt

Enumerator
DEC 
HEX 

Function Documentation

◆ delay()

void delay ( uint32_t  ms)
inline

◆ delayMicroseconds()

void delayMicroseconds ( uint32_t  ms)
inline

◆ digitalRead()

int digitalRead ( int  pin)
inline

e.g. for AudioActions

◆ digitalWrite()

void digitalWrite ( int  pin,
int  value 
)
inline

◆ micros()

uint64_t micros ( void  )
inline

◆ millis()

uint32_t millis ( )
inline

◆ pinMode()

void pinMode ( int  pin,
int  mode 
)
inline