takahiro maeda / Mbed 2 deprecated Nucleo_IHS11a

Dependencies:   mbed CLED Sensor

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 // *** IHS ver1.1a ***
00002 // Sensor.hで設定 *** every/normal, single-board/cube/cube-dual(row-length) ***
00003 #include "mbed.h"
00004 #include "CLED.h"
00005 
00006 Sensor sensor(-70);     // The smaller the value, the higher the height
00007 CLED cled(11);          // IHSxx
00008 
00009 int main() {
00010 // ********************** get initial value ************************
00011     cled.set(10);
00012     wait(1);
00013     sensor.set_adAryInit(); // set initial value
00014 // *************************** loop ********************************   
00015     while(1) {
00016         sensor.setAd();
00017     }
00018 }