Skip to main content

Questions 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.

19 votes
5 answers
80k views

What does this error means? I can't solve it in any way. warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Facorazza's user avatar
  • 439
17 votes
1 answer
106k views

Asked this question on Electrical Engineering Stack Exchange and was directed here: Pretty self explanatory; how would I go about converting a float into a char*? I have code in which the float '...
higgsboson's user avatar
16 votes
6 answers
21k views

I want to write a sketch that can be compiled on different Arduino boards. I want to display on the PC which board is currently connected. This means that the user connects the PC via USB cable to ...
Elmue's user avatar
  • 481
12 votes
6 answers
5k views

I've been reading a lot over the years why we should not use the notorious String class and how heap fragmentation is bad practice and not professional and we should never use it in our programs or we'...
Nino's user avatar
  • 411
12 votes
3 answers
8k views

I like the idea of using the Arduino IDE for simple projects and for getting started with Arduino, but the consensus I've gotten so far is that it is for those who are new to Arduino and/or ...
smeeb's user avatar
  • 509
11 votes
3 answers
19k views

I would like to know if there is a way to call functions that are contained within C files using an Arduino sketch? My C file declares and defines a function. To save putting the messy function ...
user_name's user avatar
  • 317
11 votes
4 answers
21k views

How do the IO registers of Arduino Due work? On Arduino Uno just set DDRx, then PINx to read, PORTx to write, I'd like to do the same thing with an Arduino Due, but it has many more registers, such as ...
Alex's user avatar
  • 315
10 votes
3 answers
42k views

I am a beginner and I want to learn AVR C/C++. Can I do this using an Arduino? (I'm asking this because I already have one). If so, could someone tell me using which IDE can I write code in pure C/C+...
ICRed's user avatar
  • 101
9 votes
2 answers
8k views

I use the interrupt function to fill an array with values received from digitalRead(). void setup() { Serial.begin(115200); attachInterrupt(0, test_func, CHANGE); } void test_func() { if (...
user277820's user avatar
8 votes
6 answers
21k views

Hi I am using Arduino Nano to gamify my experience on Unity3D. I know that Update() in Unity3D runs every frame per second but I because I'm not an electronics guy I don't know how loop() function ...
FiftyShadesGreyAbhi's user avatar
8 votes
2 answers
16k views

I would like to make a makefile for compiling c programs for the arduino. I am somewhat familiar with make but have never used it with avr-gcc. What is the simplest way I could put the commands below ...
connorwstein's user avatar
7 votes
3 answers
52k views

I updated and uploaded some code on another computer that got wiped and didn't send the new code to my current computer, the updated code is still on the board but I don't have access to it. How do I ...
Awesome_Ace22's user avatar
7 votes
4 answers
11k views

What would be the (very) minimum schematic to make a ATtiny85 blink a led? Restrictions are: There must be a C program compiled and uploaded to it, just like an Arduino board would have. The code ...
DrBeco's user avatar
  • 269
7 votes
3 answers
17k views

One of the FastLED examples that I've seen was using code that looks like this: EVERY_N_MILLISECONDS( 300 ) { transition_step(); } I've copied it and successfully used it in the same context - but I ...
Lefty's user avatar
  • 347
6 votes
4 answers
6k views

I'm developing a program that uses the HTML server in the WiFi101 library. My hardware does not have SD card storage so all source html needs to be stored as strings in the sketch at compile time. ...
Geordie's user avatar
  • 195

15 30 50 per page
1
2 3 4 5
29