FOR BRAD!!!!

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 // Directive to include particular header files
00002 #include "LinearBlend.h"
00003 #include "mbed.h"
00004 Serial pc(USBTX,USBRX);
00005 
00006 int main()
00007 {
00008     pc.baud(912600);
00009     pc.printf("Hello World!\r\n");
00010     int t=10;
00011     float ref[t];
00012     LinearBlend blend1;
00013     blend1.init(0, 100, t);
00014     float* ptr=blend1.blend(ref);
00015     for (int i=0; i<sizeof(ref)/sizeof(ref[0]); i++) {
00016         pc.printf("%f \r\n",ref[i]);
00017     }
00018     return 0;
00019 };
00020 
00021 // void init(float end, float start, int t_blend);
00022 // void blend(float* ref[])