Skip to main content

Questions tagged [variables]

Variables are used to store data in a sketch/program.

-2 votes
1 answer
81 views

I am trying to change thing2 if I input 0, and thing3 if I input 1. I don't want to just have if/else to determine if I should be changing thing2 or thing3 because I want this to be more dynamic than ...
Warby's user avatar
  • 1
-1 votes
1 answer
363 views

So I have: 1/ My myapp.ino file, that includes src.h (implemented in src.cpp). Compiled for Arduino Uno. 2/ I also have a unit-tests.cpp file that is meant to test functions in src.cpp. Compiled for ...
theredled's user avatar
-1 votes
1 answer
958 views

How do global variable declarations work? For example: In file1.c I am defining: #define volt_add 0x20 uint8_t vol[8]= {0x53, 0x35, 0x05, 0x22, volt_add,0x00,0x00,0x00}; uint16_t EM_vol; I need to ...
Sireesha's user avatar
1 vote
2 answers
114 views

Working on a project where I get an input where its a comma delimited string like: "255,10000000,42949672950254,12,22". and then the numbers (no commas), would be split into 6 Long ...
The Oracle's user avatar
0 votes
1 answer
1k views

lets say we have a function like this(fictional): function1(int Z, int X, bool Y=true, int Count=10, int ID=1,bool TeaTime=false); And I want to run this function, but I want to change all parameters,...
TeD van Loon's user avatar
0 votes
2 answers
314 views

i get the current time with the example code istimneforset, everything works fine. now i want to get the current time from the function "Serial.println(timeClient.getFormattedTime());" and i ...
Mike's user avatar
  • 11
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
0 votes
1 answer
261 views

I have a SHT30 sensor for Wemos and I am learning to use Arduino IOT Cloud. I use float data type for my temperature variable but I see two more data types: CloudTemperature CloudTemperatureSensor ...
Roby Sottini's user avatar
0 votes
1 answer
95 views

Probably I'm doing something wrong. I'm writing an Arduino sketch for ESP32. Among the others I have this function: #define HDR_MAX_LENGHT 4 #define CMD_MAX_LENGHT 5 #define ARG_MAX_LENGHT 5 #define ...
Mark's user avatar
  • 393
-2 votes
1 answer
851 views

i am transmitting sensor data from my atmega328p to my esp8266. The Sensordata has 3 decimal places. The esp8266 sends this data to my pc and there I see only two digits. This is because the data is ...
kaan's user avatar
  • 1
0 votes
1 answer
86 views

This question deals with fonts. Well, actually, singular include files with constants that form bitmap fonts or images for LCD or OLED displays, such as this one: https://github.com/ThingPulse/esp8266-...
user avatar
0 votes
3 answers
2k views

I am new to arduino and I want to make a project where I have a motor spinning clockwise then when a button is pressed it spins anti-clockwise and if it is pressed again it goes back to clockwise etc.....
bstplyr2401's user avatar
1 vote
1 answer
449 views

I am working on a simple project on talking to the serial monitor, and my only global variable ("int" type, named "incomingByte") is consuming a lot of memory. There is no problem ...
Vitor Z.'s user avatar
-1 votes
1 answer
113 views

I'm a little dumbfounded as to why this isn't working. I keep getting the following linker error: In file included from src\ac.cpp:1:0: src/ac.h:9:21: error: expected identifier before numeric ...
Jeebus's user avatar
  • 3
2 votes
1 answer
3k views

Using Nano's for small programmes I get compilation reports about the amount of space taken by global variables. On a typical progamme it says something like Sketch uses 16316 bytes (53%) of program ...
Harry J Crowley's user avatar

15 30 50 per page
1
2 3 4 5
11