Questions tagged [string]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
3answers
127 views

Adding a const string identifier to at the start location of functions in C

I would like to add a const string identifier at the start locations of few functions. The reason is that I need to maintain a table of function pointers, the indexes of which are to be in a specific ...
0
votes
2answers
331 views

Why is there no resistor in a christmas LED string light?

I bought a bunch of different LED string lights for Haloween and Christmas. All of them are arranged as 2 sets in parallel. They are either 50 or 100 LEDs. I noticed that most of them have a molded ...
0
votes
1answer
76 views

Extract numbers from String on ATMega168

I try to separate and parse two numbers out of a string, one is a float and one is an int. So I do this... ...
1
vote
3answers
288 views

What DIY Function Generator is Suitable to drive a Pasco WA-9857 String Vibrator?

Preface... total amateur. I picked up 8 Pasco WA-9857 String Vibrators off of eBay for an art project. I need some way of driving them individually.... cheaply. So I bought a $12 XR2206 Function ...
0
votes
2answers
125 views

Microcontroller support strings or other libraries [closed]

I heard some microcontrollers have a poor (or no) support for <string>s as a data type of C/C++ when programming. How to know if a microcontroller supports <...
2
votes
1answer
2k views

Using string type in VHDL

To make it easier to read a waveform in the testbench, I want to use a signal/variable that is of string type. Basically e.g when I am reading address 0x03 from an SPI device, the string shall say ...
3
votes
2answers
309 views

Error handling strings in a 8051

I am using a Texas Instruments CC1110, which is based on the 8051 microcontroller. I'm programming it using the IAR Embedded Workbench. I have written a function named ...
2
votes
1answer
83 views

Power supply to led string

I have some led strings of the type shown: ...which run off two C2032 batteries, so 6V. I am cutting off the battery cases and connecting them to a 6V supply which is a step down converter on a 12V ...
1
vote
1answer
921 views

How does to reverse items in an array type

I have a function that works with string passed to it. The string should be defined as "a to b" rather than "a downto b". I have the following questions: How to find out if the string passed is ...
3
votes
1answer
7k views

VHDL: Is it possible to have a “variable length” string in VHDL like in programming languages?

According to the package named Standard in VHDL, the string is actually declared as array of character type where the character type itself is also defined within the package. Provided that I am ...