Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 months, 2 weeks ago. This question has been closed. Reason: Off Topic
Turning off LED with barcode scanner
I'm trying to turn off my led light if I scan a certain barcode string. So far in my code I am able to retrieve the barcode and then see the output of that scan on my serial terminal. My issue is I'm not sure how to get my code to work to turn off the led if the scan is the correct string.
Attached is an image of my code:
Not shown in the image is the mbed and string headers included at the top. If someone could help me out that would be greatly appreciated, thank you!
I'm using the STM32F072RB nucleo board and I'm using the online mbed compiler on my mac. I don't think this makes much of a difference but I'll share in the info regardless