Craig's Arduino Software Reference

Serial void begin(long speed);

void end(void);

int available(void);

int read(void);

Returns the next byte or -1 if no data is available

int peek(void);

void flush(void);

size_t print(); size_t print(const char *); size_t print(char); size_t print(unsigned char, int); size_t print(unsigned char); size_t print(int, int); size_t print(int); size_t print(unsigned int, int); size_t print(unsigned int); size_t print(long, int); size_t print(unsigned long, int); size_t print(double, int); size_t print(const Printable&);

size_t println();

size_t write(uint8_t);
size_t write(const char *);
size_t write(const uint8_t *buffer, size_t size);

Timers

With a 16 MHz clock, clockCyclesPerMicrosecond() is 16000000 / 1000000 or 16 clock cycles per microsecond.

Copyright © 2012, 2013, 2015, 2017, 2018, 2019, 2020
Craig Leres