Skip to main content

Questions tagged [char]

0 votes
1 answer
90 views

I've written a sketch that uses TimeLib to display elapsed time. I'm measuring how long it takes to drain a battery. The goal is to display the time as hh:mm:ss. The code I use works well when I ...
Hobbes's user avatar
  • 146
1 vote
1 answer
231 views

I need to interface an ATTiny88 MCU configured as an I²C slave with a Raspberry Pi configured as an I²C master. I may be using the wrong approach, but I have a structure consisting of four different ...
LesRhorer's user avatar
  • 115
0 votes
1 answer
227 views

I am making a project, in which I need to store the WiFi credentials to the EEPROM. For now, I am able to store a bool array in the EEPROM, but I am not able to store the char variables as the ESP32 ...
Loic Daigle's user avatar
0 votes
1 answer
2k views

I am printing some ASCII art to the Serial monitor from Arduino UNO, with some success. However, using string literals uses more memory than I would like. I wanted to try constructing the strings/...
Hubert B's user avatar
0 votes
2 answers
479 views

I am trying to move a stepper motor when a specific command is send to Arduino Mega 2560. This command is read character by character and stored in a string variable. Whenever a new command is sent, ...
Yan Araújo's user avatar
0 votes
1 answer
209 views

I'm trying to understand if a char * variable can be updated down the code (since it only stores a pointer) or over-flow can occur. For example: char *A="/file.txt"; char *B; void ...
guyd's user avatar
  • 1,049
-1 votes
2 answers
360 views

When I run this code, my pin and pinCheck arrays are not being filled with the results of keypad.getKey(). If I print the value at each index, the result is blank. As far as I can tell, I am either ...
Ryan's user avatar
  • 3
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
2k views

Explain in a simple example. How to pass a char* to a function? #define name1 "ABCD" #define name2 "EFGH" #define name3 "HIJK" char *list[3] = {}; void printList(char *...
guyd's user avatar
  • 1,049