Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Basic embedded system programming.doc
Скачиваний:
1
Добавлен:
01.07.2025
Размер:
723 Кб
Скачать
☆

Interrupts(); //other code here

noInterrupts(); //critical, time-sensitive code here

Serial.available(); // it gets the number of bytes (characters) available for reading from the serial port

Serial.availableForWrite(); // it gets the number of bytes (characters) available for writing in the serial buffer without blocking the write operation

Serial.begin(BAUD SPEED); // it sets the data rate in bits per second (baud) for serial data transmission

Serial.end(); // it disables serial communication, allowing the receiving and transmitting pins to be used for general input and output

Serial.find(); // it reads data from the serial buffer until the target string of given length is found

Serial.findUntil(); // it reads data from the serial buffer until a target string of given length or terminator string is found

Serial.flush(); // it waits for the transmission of outgoing serial data to complete

Serial.parseFloat(); // it returns the first valid floating point number from the Serial buffer

Serial.parseInt(); // it looks for the next valid integer in the incoming serial stream

Serial.peek(); // it returns the next byte (character) of incoming serial data without removing it from the internal serial buffer

Serial.print(); // it prints data to the serial port as human-readable American Standard Code for Information Interchange text

Serial.println(); // it prints data to the serial port as human-readable American Standard Code for Information Interchange text followed by a carriage return character (American Standard Code for Information Interchange 13, or '\r') and a new line character (American Standard Code for Information Interchange 10, or '\n')

Serial.read(); // it reads incoming serial data

Serial.readBytes(); // it reads characters from the serial port into a buffer

Serial.readBytesUntil(); // it reads characters from the serial buffer into an array

Serial.readString(); // it reads characters from the serial buffer into a string

Serial.readStringUntil(); // it reads characters from the serial buffer into a string until ...

Serial.setTimeout(); // it sets the maximum milliseconds to wait for serial data when using

Serial.write(); // it writes binary data to the serial port

Stream.available(); // it gets the number of bytes available in the stream

Stream.read(); // it reads characters from an incoming stream to the buffer

Stream.flush(); // it clears the buffer once all outgoing characters have been sent

Stream.find(); // it reads data from the stream until the target string of given length is found

Stream.findUntil(); // it reads data from the stream until the target string of given length or terminator string is found

Stream.peek(); // it read a byte from the file without advancing to the next one

Stream.readBytes(); // it reads characters from a stream into a buffer

Stream.readBytesUntil(); // it reads characters from a stream into a buffer until ...

Stream.readString(); // it reads characters from a stream into a string

Stream.readStringUntil(); // it reads characters from a stream into a string until ...

Stream.parseInt(); // it returns the first valid (long) integer number from the serial buffer

Stream.parseFloat(); // it returns the first valid floating point number from the current position

Stream.setTimeout(); // it sets the maximum milliseconds to wait for stream data, it defaults to 1000 milliseconds

available(); //

close(); //

flush(); //

peek(); //

position(); //

print(); //

println(); //

seek(); //

size(); //

read(); //

write(); //

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]