Suga koubou
/
LTC_SMPTE_sample
SMPTE timedode (LTC) decode library for mbed https://developer.mbed.org/users/okini3939/code/LTC_SMPTE/
Revision 0:2af25457a32f, committed 2015-11-16
- Comitter:
- okini3939
- Date:
- Mon Nov 16 12:52:27 2015 +0000
- Child:
- 1:856bd5072ca0
- Commit message:
- 1st build;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LTC_SMPTE.lib Mon Nov 16 12:52:27 2015 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/users/okini3939/code/LTC_SMPTE/#8d19e2158eb4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Nov 16 12:52:27 2015 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +#include "LTC_SMPTE.h" + +DigitalOut led1(LED1), led2(LED2); +Serial pc(USBTX, USBRX); +LTC_SMPTE ltc(p21); // LPC1768 + +int main() { + pc.baud(115200); + pc.printf("*** LTC\r\n"); + led1 = 1; + led2 = 0; + + while(1) { + if (ltc.isReceived()) { + int hour, min, sec, frame; + ltc.read(&hour, &min, &sec, &frame); + pc.printf("%d %d %d %d\r\n", hour, min, sec, frame); + led2 = !led2; + } + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Nov 16 12:52:27 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11 \ No newline at end of file