フォトリフレクタprpr

Dependencies:   mbed

main.cpp

Committer:
yuron
Date:
9 months ago
Revision:
0:dff288c3f0f6

File content as of revision 0:dff288c3f0f6:

#include "mbed.h"

DigitalIn photo(D7);
DigitalOut myled(D13);

int main() { 
    while(1) {
        if(photo == 1){
            myled = 1;
        } else {
            myled = 0;
        }
    }
}