Skip to main content

Questions tagged [array]

Refers to code that present variables in the form of an array.

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

I'm trying to make an Arduino Leonardo work with a PS4 following a similar approach as ArduinoXInput with its modified AVR core. However, even though I managed to add the device and configuration ...
Flamethrower's user avatar
0 votes
2 answers
106 views

Please help how make it work. int myArray1[] = {10, 11, 12}; int myArray2[] = {15, 16, 17}; void setup() { Serial.begin(9600); } void loop() { myFunction(myArray1); delay(1000); // i want to use ...
Ariv Nidunami's user avatar
1 vote
2 answers
136 views

Consider the following code: #include <Arduino.h> unsigned char testimage [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ...
Bart Friederichs's user avatar
1 vote
1 answer
411 views

I'm measuring accelerations at "high frequency" (4kHz) from an accelerometer (ADXL355/ADXL357) to an esp32. It's crucial that no sample is lost while performing a measure which last say 2 ...
AlekseyFedorovich's user avatar
1 vote
2 answers
118 views

I am trying to write a program which takes in a number of pairs to be multiplied, then prints out the result of each multiplication. Instead of doing this, the program just prints out the number of ...
JG98's user avatar
  • 21
1 vote
0 answers
129 views

I want to transfer 8 lists from a python script, via Serial Monitor to the Arduino. I can get the strings to Arduino and Arduino saves them as String array, but I can't change it to integer (it shows ...
PNarduinouser's user avatar
1 vote
1 answer
280 views

I have some really long global variable arrays filled with data. There is a single function that processes the data. The function works on only one array everytime. This arrays value changes every ...
user1584421's user avatar
  • 1,435
1 vote
2 answers
229 views

I'm new to C++. How to make a menu without if() {} else {} & switch() case? I made a menu on an array, but for some reason it doesn't compile. How to correct it? typedef void (*cbd)(uint8_t, ...
Andre's user avatar
  • 27
0 votes
1 answer
141 views

I'm trying to pass a list of files (located in sketch) to be read using a library I write. List can have different filenames and vary in number of files. How to pass a this array to my library? for ...
guyd's user avatar
  • 1,049
1 vote
1 answer
344 views

I'm getting an unexpected extra character added to the serial monitor print line only when I initialize an SD card in the code. Normal The code below gives me this expected result in the serial ...
Dashiell Rose Bark-Huss's user avatar
1 vote
0 answers
382 views

I'm trying to control an adafruit soundboard with my elegoo uno R3. I'm a beginner programer and I'm trying to get the soundboard to play a sound file by name when I press a button. I have confirmed ...
Eric Walier's user avatar
0 votes
2 answers
1k views

well I am trying to get array size to convert hex value to int value. but if I try to get size of array it returns every time 2. Actually .I dont understand. how to get array size, can you help me? ...
mehmet's user avatar
  • 297
1 vote
1 answer
2k views

I am trying use a HMI display. If I want to send a data, for example I want to write "TOPWAY" to 0x00000080 address it should like that: Serial.write(0xaa); // packet head Serial....
mehmet's user avatar
  • 297
0 votes
1 answer
724 views

So I've recently started a project where I am using an accelerometer, along with a SD card breakout board. I've been able to get information to write properly to the SD card with no issues whatsoever. ...
Colby Johnson's user avatar
1 vote
0 answers
854 views

I want to parse the data of the incoming buffer from the serial read bytes, but I don't really know how to get the data out of the array and save it to different variables. This is my code: void setup(...
alessandromrc's user avatar
1 vote
0 answers
57 views

I'm trying to write code that should result in a click of the mouse, based on dwell time. I'm getting data from a gyroscope to move the mouse around. I'm not sure what the best way is to approach this ...
Zhelyazko Grudov's user avatar
0 votes
1 answer
2k views

I'm reading RFID cards' UID with an ESP8266 and trying to send that information to my web server hosted on a Raspberry Pi. I'm currently storing the UID in an int array, but the http.POST(); function ...
leventecsoba's user avatar
1 vote
1 answer
523 views

The goal for this is to create a struct that includes a name, ID, fileName, and a boolean, then create an array of that structs. Here's what I came up with: struct Amiibo { char *aName{}; char *ID{...
Ethan Braun's user avatar
2 votes
0 answers
119 views

Recently I started some tests controlling water heater with temperature sensor data as described in detail here So far I've been testing a small dataset to control water temperature that is quite easy ...
s_tatus3's user avatar
2 votes
1 answer
430 views

Referring to this thread How to declare and use "Variabled arrays" inside arrays Example byte array[2][4] = { {1,2,3,4}, {5,6,7,8} }; Serial.println(array[0][2]); is equal to '3'. Instead ...
AndroidV11's user avatar
1 vote
1 answer
954 views

I'm using the keypad library to return a number 1-9. (im fairly sure this returns an int) I have an array (data) showing the state of each button press. so i would like the number returned by the ...
dogfood's user avatar
  • 51
0 votes
1 answer
657 views

I have a websocket listener that is giving me a std::string of my message payload (I want the bytes) and I wrote a function that pulls each of the bytes out and puts them into 32 bit integer variables,...
Chris Schmitz's user avatar
2 votes
1 answer
168 views

I am using the Arduino IDE to run and monitor, with an Arduino Nano clone. This code shows what I mean by the question: char foo = 127; char bar = 128; Serial.println(String(foo, BIN)); Serial.println(...
Boba0514's user avatar
4 votes
2 answers
19k views

I defined myself a struct: typedef struct { unsigned char current; unsigned char start; unsigned char target; unsigned long startTime; unsigned int duration; } led; I was able to initialize ...
iGEL's user avatar
  • 143
1 vote
1 answer
195 views

I am new to Arduino programming, after days and nights trying to use array and for loop, and googling a lot of articles, I am still unable to find how to store each weighing output value from int ...
FlipFlop's user avatar

1
2 3 4 5 6