Skip to main content

Questions tagged [c++]

C++ is a compiled general-purpose programming language that adds object-oriented features and other enhancements to the C language, which it is largely a superset of. It is popular for both embedded and PC software development.

Filter by
Sorted by
Tagged with
2 votes
5 answers
237 views

Micro-Controller Programmable Selection

I have searched a lot and I can't seem to find a micro-controller that I can program in C++. Can someone please help me find a micro-controller (besides Arduino) that I can program C++?
user151324's user avatar
-3 votes
1 answer
3k views

Error: argument of type "cons char *" is incompatible with parameters of type "LPCWSTR" [closed]

I am writing a code in Visual C++ to access serial port of a computer. Code is given below:- ...
Saad Rafey's user avatar
2 votes
2 answers
2k views

Problem on printing "Ethernet.localIP()" to Serial Monitor

I am using Arduino Uno and the Ethernet Shield. I have the following code: ...
Backo's user avatar
  • 275
-2 votes
1 answer
202 views

How Can I Program a Universal Application Keyboard? [closed]

IMPORTANT NOTE: This is a question from who has no experience and knowledge on this area. So before giving negative rep, please provide constructive suggestion. I want to program a universal ...
t1w's user avatar
  • 105
2 votes
1 answer
2k views

Implementing the Digilent EPP

I am trying to implement Digilent Parallel Interface from their SDK. You can specifically read up on the interface in this manual. I am using the Basys 2 250k board. I am trying to figure out what I ...
MLM's user avatar
  • 858
-1 votes
4 answers
4k views

What are the pros/cons of C and C++?

What would be the pros and cons of using C++ over C for uC (AVR) programming ?
dugres's user avatar
  • 163
2 votes
1 answer
397 views

Control a C program on a PC with external digital/analog inputs

I developed a code in DEV C++ which simulates graphically a the actions of a train driver. Basically I control the speed and some other functions of a train from my keyboard. Now, instead of the ...
george haiduc's user avatar
4 votes
1 answer
1k views

New C++ (C++11) and embedded electronics

I wonder if the new C++ (which called C++11) works well with the embedded electronics and programming them. Do the new features fit well if working with uC? Like R-Values and so on? Or should be ...
Siraj Muhammad's user avatar
23 votes
10 answers
37k views

Programming languages for electronics engineers

I am an Electronics and Communications Engineering student, before I got to college, I have been interested in programming and computer applications. I had focused on designing Windows applications ...
Siraj Muhammad's user avatar
4 votes
1 answer
489 views

Custom-CPU builder/simulator

I googled deeply but couldn't find any cpu constructor simulator. I'm specifically hoping to learn about the operation of the northbridge, but When I googled "bridge simulator" or "bridge (the ...
huseyin tugrul buyukisik's user avatar
3 votes
1 answer
4k views

How to program an ATmega32 in C++ to control a LCD?

I'm electronics student. I'm a newbie in programming. I have loved C++ after watching some videos on C++. Am using Atmega32 uC, WinAVR GNU GCC compiler programming tool, 16*2 Hitachi HD4478OU LCD for ...
Fred's user avatar
  • 31
6 votes
2 answers
427 views

How can I instruct my compiler to use 8 bit bytes instead of 16 bit integers?

I have the following code in my microcontroler program: ...
jippie's user avatar
  • 33.4k
9 votes
1 answer
644 views

While loop optimized away

I have the following code in my microcontroler program: // Wait for ADC conversion to complete while ( ( ADCSRA && _BS( ADSC ) ) == _BS( ADSC ) ) {} ...
jippie's user avatar
  • 33.4k
2 votes
2 answers
1k views

C++ microcontroller/processor selection

I am having trouble selecting a microcontroller/processor for a robotics project in C++. I have a program working on my computer that is 1.5+ KLOC and relies on data in twenty other files to function, ...
user avatar
5 votes
3 answers
51k views

How to have an Arduino wait until it receives data over serial?

So I've wired up a little robot with a sound shield and some sensors. I'm trying to write a sketch that will let check the sensors. What I'd like for it to do is print out a little menu over serial, ...
SonicDH's user avatar
  • 103
8 votes
1 answer
5k views

Can an ATmega or ATtiny device signature be read while running?

While programming an ATtiny or ATmega, avrdude prints the device signature, in this example it is an ATtiny. avrdude: Device signature = 0x1e910a Can I read this ...
jippie's user avatar
  • 33.4k
9 votes
5 answers
23k views

Is it going to be possible to write code in C++ for PIC microcontrollers in the future?

Is it ever gonna be possible to use C++ for coding PICs? Is there any hardware limitations that prevents us to use C++? How much the size of generated .hex file and running time of the program ...
hkBattousai's user avatar
  • 14.2k
4 votes
1 answer
8k views

What's wrong with my C++ Template code for Arduino?

I'm trying to implement a C++ templated member function in Arduino 0022, but I'm getting an error in code which seems correct to me. ...
aaaidan's user avatar
  • 563
12 votes
1 answer
8k views

Arduino and Interrupts: Fast way to get pin values

I use an Arduino Uno and already set it up to work with interrupts on digital pins 2, 3, 4 and 5 according to an explanation1 I found. void setup() contains the ...
madc's user avatar
  • 271
1 vote
1 answer
1k views

Cannot use HardwareSerial pointers or references in my Lib for Arduino AVR?

I wrote a wrapper class for a serial lcd screen for 4dulcd - and i want to be able to pass which serial i am using to communicate with it I have these in my code myClass.h ...
Piotr Kula's user avatar
  • 2,144
13 votes
5 answers
5k views

C++ classes for I/O pin abstraction

I am looking for C++ abstractions for hardware I/O points or pins. Things like in_pin, out_pin, inout_pin, maybe open_collector_pin, etc. I surely can come up with such a set of abstractions myself, ...
Wouter van Ooijen's user avatar
7 votes
2 answers
886 views

MATLAB toolbox equivalent for embedded system

We have to develop control software to run in an embedded system. The prototype is made in Matlab (using neural network toolbox), and we want to port the software to C or C++. Do you know which ...
joanlofe's user avatar
  • 171
9 votes
1 answer
7k views

Bug in Keil ARM compiler with interrupt handlers and C++?

I have a problem with writing interrupt handlers in Keil ARM compiler for LPC1114. When I write program in C++ and specify --cpp compiler option all code from interrupt handlers disappears, it is ...
x4mer's user avatar
  • 1,016
8 votes
7 answers
22k views

Programming a parallel port as digital I/O

I'm trying to use a parallel port from a computer as a form of cheap digital output to do various things (control motors, light LEDs, read limit switches, ect). I want to know how to control the 8 ...
Faken's user avatar
  • 165
186 votes
16 answers
104k views

Is C++ suitable for embedded systems?

A common question, here and elsewhere. Is C++ suitable for embedded systems? Microcontrollers? RTOSes? Toasters? Embedded PCs? Is OOP useful on microcontrollers? Does C++ remove the programmer too ...
8 votes
1 answer
4k views

What should I know when making a library for the Arduino?

It occurs to me that, beyond my current problem, I ought to ask, "What should I know when making a library for the Arduino?" First, what I am doing: I'm using Eclipse as my editor and writing code ...
Clinton Blackmore's user avatar

1 2 3 4
5