CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2016
    Posts
    1

    Smile simple lighting problem using code

    I'm working on a masters project at University, where I'm investigating different photometric stereo techniques. This requires me to write a piece of code, which when run, it triggers four lights to flash, one after the other. I appreciate this is probably (hopefully) a really simple problem but my coding experience is quite limited and I'm not sure how to link the code to the flash lights, whether this be through the use of an FPGA or some other micro controller.

    I'm thinking of using a counter, after 1 count light 1 will turn on, after another count light 2 will turn on and so on...

    Ideally I'd like to use C or use Matlab. What is the best way to write this code and what is the best method of linking this code to the flash lights?

    Thank

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,923

    Re: simple lighting problem using code

    What hardware are you using for the lights? Do you want this all to be standalone (using say an Arduino or a Raspberry pi) or do you want to connect the lights to a pc/laptop and control them from that?
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured