Questions tagged [string]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
93 views

My itoa (c++)conversion has a problem

I am receiving a string of data via UART in PIC32, extracting and concatenating two of its bytes, dividing the result by 2, converting the resulting integer to a string and transmitting via i2c to ...
1
vote
2answers
114 views

Safely wiring two strands of halloween LED string lights in series?

I have ~20 ft of perimeter to cover and it seems everything sold online is sold by ~10 ft lengths. I've decided I want to buy two strands of these lights and connect them start to end. What ...
0
votes
1answer
61 views

Help understanding this equivalent mechanical circuit of a piano string?

I'm studying this article to help with an audio synthesizer design for guitar/piano strings. Musical strings can be conceptualized as having both vertical (perpendicular to the soundboard/body) and ...
1
vote
3answers
153 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
5answers
7k 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
111 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
411 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
271 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 <...
3
votes
2answers
428 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
89 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 ...
2
votes
1answer
4k 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 ...
1
vote
1answer
1k 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 ...
5
votes
1answer
10k 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 ...