CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 12:40:54 GMT
content-type: text/html; charset=utf-8
cf-ray: 965c353b6ee8a9b7-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=6e72f6a1-91c6-42ca-bf2c-d014926f5f5b; expires=Mon, 27 Jul 2026 12:40:54 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: b618455d-5408-404b-b090-62d614530bb2
x-worker-origin-response-time: 493000000
x-dns-prefetch-control: off
set-cookie: prov=6e72f6a1-91c6-42ca-bf2c-d014926f5f5b; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=bo_h20AyLBI8WvEaoh4YHz7U1I7uQgqdiosQD1ztDOg-1753620054-1.0.1.1-kgiJMea1xfSAchoSor2ZJM3nGG7H3dHnyS61.GFe92uxSL8lmPAs6cC4F35.hi3LN9G.mLViJrbcImJ3b9ftup.jY.u_k26LxBfXprNI54A; path=/; expires=Sun, 27-Jul-25 13:10:54 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=ozGGCyepGtXC0DFe6Ri5F9e0O.yIqZC0sDy7rIhJyMs-1753620054810-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'c' Questions - Arduino Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [c]
C is a procedural programming language which is widely used in embedded systems. PLEASE NOTE: Arduino is typically programmed in C++, not C.
431 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
83
views
0
votes
2
answers
65
views
0
votes
1
answer
96
views
Problem with char* variable malloc/free. Empty contents on recipient variable after using free
I am working on a custom SD card data logger using the following function and struct:
char *filenameCreator(const char *prefix, const char *num, bool addExtension)
{
char *filename = (char *)...
0
votes
1
answer
77
views
Serial com register formula
i am working on a atmega328p, learning to uses its registers instead a coding with common arduino code.
i've found this formula to get the baud rate on the Serial port (using USART protocol) :
how ...
-1
votes
1
answer
293
views
Declaration of global variables in separate file: compiler conflict
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 ...
-1
votes
1
answer
502
views
SPI with DMA in a Arduino Due
I have a project where I need to store data (~16 Mo) on a memory and be able to fetch the data fast (<36000 bits/s) with DMA because I have other signals to take care of.
Currently I use an SD card ...
2
votes
2
answers
6k
views
How to use Interrupt in Arduino to receive the data from Serial Input
Currently i have a project that forced me to make a program that receives several data from Serial Input using Interrupt in Arduino. I use Arduino as the receiver and ESP32 as the sender through ...
1
vote
2
answers
485
views
Working with pulseIn() and millis()
I'm trying to use pulseIn with elapsed time using millis(), I don't want to use interrupts instead of pulseIn (I need pulseIn because I need accurate pulse time), the elapsed time doesn't need to be ...
4
votes
1
answer
644
views
Problem with reading data from ELM327
The idea was to create a bluetooth device on the arduino to read data from the machine (ELM327 v2.1) using the HC-05 bluetooth module.
In this code the bluetooth module is switched to MASTER mode and ...
1
vote
0
answers
114
views
Problem changing the state of the blue LED on an ESP8266
I am trying to change the blue LED on my ESP8266. I can do this (sort of...)
In the setupWifi() function below, there is a loop that is supposed to rapidly blink the LED while wifi is connecting. The ...
1
vote
0
answers
54
views
How to prevent the application code from getting stuck in forever loop when using SerialFlash library in Arduino-Adafruit framework
I have been working on a project that runs on Adafruit's Bluefruit nRF52 board. I used the SerialFlash library for Arduino provided by Paul Stoffregen: https://github.com/PaulStoffregen/SerialFlash....
2
votes
0
answers
174
views
TFT Screen with Arduino UNO does not display as expected
I have a 3.5" TFT LCD communicating in parallel connected to Arduino UNO.
I expect it draws a white circle on a black background but all it does is to show a white screen.
How to fix this?
main.c
...
2
votes
1
answer
271
views
How does the compiler/assembler work wrt bootloader?
I realized that on the atmega boards the bootloader is programmed into the chip.
I'm curious, when compiling a sketch how does the compiler/assembler differ from compiling a standard C program for a ...
0
votes
4
answers
1k
views
How to send multiple bytes with Wire without copying
When I need to send multiple bytes via Wire, for example a long int, I cast it to a byte array and specify a length
long int i;
Wire.write((byte*)&i, 4);
But if I want to send bytes from more ...
-1
votes
1
answer
368
views
How to write arduino code in a c/c++ script
I'm pretty new to arduino. But I have some knowledge about programming in c/c++. I know that arduino is written in c. But it can't be used as normal c/c++ code.
for example ,
instead of including some ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
arduino-uno × 154
programming × 102
c++ × 84
arduino-ide × 42
arduino-mega × 30
serial × 26
i2c × 23
avr × 23
esp8266 × 23
arduino-nano × 18
array × 17
string × 16
sketch × 14
interrupt × 13
led × 11
library × 10
sensors × 9
atmega328 × 9
lcd × 8
arduino-due × 8
variables × 8
pointer × 8
esp32 × 8
spi × 7
pwm × 6
more related tags
Hot Network Questions
- How to extend an MDF shelf?
- What's the difference between an eVisa and ETA travel authorization?
- Existence of Jordan curves between a compact and an open set
- How do I set up a recursive algorithm to repeatedly square root a positive real number?
- spots / stains on tubeless tire
- In Jurassic Park, is the lysine dependency intentionally fake (in-universe)?
- Balancing a Holy Water Bomb
- Can I switch the stand on my Apple Studio Display?
- Heretofore I think I have been using 'heretofore' incorrectly
- Does SZNUD3160 really eliminate the need for diode?
- Humans on alien planet get tailed by silent humanoids
- How do Japanese people understand the reading of a single kanji with multiple readings in their everyday life?
- Regenerative cooling of rocket engine turbine's blades
- Is it possible to use the PC power button to pre-select the OS in rEFInd UEFI dual boot setup?
- Easy ways to draw vector diagrams in TikZ?
- How should one pronounce plural French-derived German words?
- Are you required to protect trade secrets revealed to you even if you didn't sign an NDA?
- About security concerns using in find -exec vs interactively performing the same task
- What were the two colored keys on a MUPID for?
- How can my dwarves keep humans from reverse engineering their technology?
- Has the Silver Surfer's clothing (or lack thereof) ever been addressed in the comics?
- In Fantastic Four 2025 shouldn't this thing have taken years?
- Can expanding foam provide interior strength for a large model?
- Automatic drawing of polygon around selected polygons in QGIS