Questions tagged [bytes]

A group of binary digits or bits (usually eight) operated on as a unit.

Filter by
Sorted by
Tagged with
0
votes
1answer
37 views

Reading Buffer from Software-Serial & Writing to Serial

My progress so far: #include <SoftwareSerial.h> SoftwareSerial ttySerial(10, 11); // RX, TX byte buffer; void setup() { // Open serial communications and wait for port to open: Serial....
0
votes
1answer
48 views

RF24 library commands, channel, and address

I'm trying to use the RF24 library for wireless communication. However, it appeared that this library does not have "help" option. There was a keywords file but it did not explain what it does. I ...
1
vote
3answers
375 views

Set and extract individual bytes of a number (lowByte() and highByte())

You can extract the low-order (rightmost) byte of a variable or the high-order (leftmost) byte of a word with the functions lowByte() and highByte() respectively (the quotes are from the ...
0
votes
2answers
70 views

need to compare if a byte is less than 80 hex

I am using an infrared sensor called OTI301. In its data sheet it says that in order to obtain object temperature and ambient temperature values I need to extract the binary information from the ...
2
votes
2answers
84 views

How to convert char[12] to byte[6]

I am trying to convert a char[12] array that contains a Mac Address into a byte[6] in order to use within the Ethernet.begin method. I have tried various methods from online, but had little success to ...
1
vote
2answers
71 views

How to modify a created byte?

I have created a byte for 16x2 LCD. It is basically a custom character which I will have to change later. byte char[8]{ B10000, B01000, B00100, B00010, B00001, B11000, B11100 }; I want to ...
1
vote
1answer
183 views

USing arrays, binary data and bitRead

This is my first manually typed code. I'm sure there may be some glaring "schoolboy errors" in it, so wondered if people could give it the 'once over' In particular, I have never used C++ arrays, ...
0
votes
0answers
35 views

Arduino is no more writing Serial if i write before

Description: I have a code version where i only send data from Arduino to PC where i read data with PC. I want to add the possibility to send a command start or to stop the sending of data. This ...
0
votes
1answer
77 views

Arduino will not read three successive packets in the serial connection

I have written a small program to send serial commands from Python to the Arduino Micro. This is my code for both: Python import serial ser = serial.Serial('COM5', 9600) ser.write(b'0') ser.write(...
1
vote
1answer
532 views

Passing arrays, global arrays within functions, pointers, and declaring array sizes

I'm super confused right about now! I've been working on project involving Xbees in API mode, and I need to send different arrays of bytes to the Xbee depending on which buttons I press. Mostly what ...