Control IHS1.1 board
Dependencies: mbed CLED Sensor
Diff: main.cpp
- Revision:
- 0:f9d9c47faaf0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jul 16 08:21:28 2020 +0000 @@ -0,0 +1,18 @@ +// *** IHS ver1.1a *** +// Sensor.hで設定 *** every/normal, single-board/cube/cube-dual(row-length) *** +#include "mbed.h" +#include "CLED.h" + +Sensor sensor(-70); // The smaller the value, the higher the height +CLED cled(11); // IHSxx + +int main() { +// ********************** get initial value ************************ + cled.set(10); + wait(1); + sensor.set_adAryInit(); // set initial value +// *************************** loop ******************************** + while(1) { + sensor.setAd(); + } +}