### How JustAnswer Works:

• Ask an Expert
• Get a Professional Answer
• 100% Satisfaction Guarantee

Category: Homework
Satisfied Customers: 3040
Experience:  MIT Graduate (Math, Programming, Science, and Music)
3546829
Type Your Homework Question Here...
Scott is online now

# I need to convert the following basic stamp code to c++ and

### Customer Question

I need to convert the following basic stamp code to c++ and can't seem to do it it in a seamless way. Anyone have a suggestion on the c++ code?

r1:
INPUT IO
INPUT CLK
LOW IO
DO : LOOP UNTIL(CLK=1)
temp = %10100000
SHIFTOUT IO, CLK, MSBFIRST, [Temp\8]
SHIFTIN IO, CLK, MSBPRE, [I2CAck\1]
IF (I2CAck=NAck) THEN r1

r2:
SHIFTOUT IO, CLK, MSBFIRST, [Temp\8]
SHIFTIN IO, CLK, MSBPRE, [I2CAck\1]
IF (I2CAck=NAck) THEN r2

r3:
INPUT IO
INPUT CLK
LOW IO
DO : LOOP UNTIL(CLK=1)
temp = %10100001
SHIFTOUT IO, CLK, MSBFIRST, [Temp\8]
SHIFTIN IO, CLK, MSBPRE, [I2CAck\1]
IF(I2CAck=NAck)THEN r3

I2CAck = NAck
SHIFTIN IO, CLK, MSBPRE, [Temp\8]
SHIFTOUT IO, CLK, MSBFIRST, [I2CAck\1]
LOW IO
Submitted: 1 year ago.
Category: Homework
Expert:  Josie-Mod replied 1 year ago.

Hello,

I'm Josie and I'm a moderator for this topic.

We have been working with our professionals to try to help you with your question. Sometimes it may take a bit of time to find the right fit.

I was checking to see if you had already found your answer or if you still need assistance from one of our professionals.

Please let me know if you wish to continue waiting or if you would like for us to close your question?

Also remember that JustAnswer has a multitude of categories to help you with all your needs from Pet to Legal.

Thank you,

Josie~Moderator

Customer: replied 1 year ago.

Josie,

Thank you for the response. I will wait a bit longer for a response.

Carl

Expert:  Josie-Mod replied 1 year ago.

Hello

Thank you, XXXXX XXXXX continue to look for a professional to assist you. Please let me know if I can be of any further assistance while you wait.

Best,

Josie~Moderator

Customer: replied 1 year ago.

Josie,

Please close my request.

Thank you.

Carl

Expert:  Seanna replied 1 year ago.
Hello, my name is Seanna.
The moderator let me know that you might be needing assistance but I see that it might be past your deadline.
I am sorry that we were unable to help on this prompt. Many experts have reviewed your question so far, but no one at this time has felt comfortable trying to help. The question may be just to difficult or not informative enough or priced to low.
If you still need an answer, fell free to reply back and let me know.. You are a valued customer and I hope you will consider us for your future needs.

### JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

### What Customers are Saying:

• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
• This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
• Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
• I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
• Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
• Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
• He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX

• ### Manal Elkhoshkhany

#### Satisfied Customers:

4522
More than 5000 online tutoring sessions.
< Last | Next >

### Manal Elkhoshkhany

#### Satisfied Customers:

4522
More than 5000 online tutoring sessions.

### LogicPro

#### Satisfied Customers:

3458
Expert in Java C++ C C# VB Javascript Design SQL HTML

### Linda_us

#### Satisfied Customers:

3124
Post Graduate Diploma in Management (MBA)

### Chris M.

#### Satisfied Customers:

2385
Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

### F. Naz

#### Satisfied Customers:

1988
Experience with chartered accountancy

### Bizhelp

#### Satisfied Customers:

1876
Bachelors Degree and CPA with Accounting work experience

### Seanna

#### Satisfied Customers:

1781
3,000+ satisfied customers, all topics, A+ work

## Related Homework Questions

Chat Now With A Tutor
Scott