QDSP-6064 bubble display example code

Dependencies:   BubbleDisplay mbed

main.cpp

Committer:
MACRUM
Date:
2016-03-29
Revision:
0:2055bf52abbf

File content as of revision 0:2055bf52abbf:

#include "mbed.h"
#include "bubble.h"

#if defined(TARGET_SSCI824)
BubbleDisplay bd(dp6, dp7, dp8, dp9, dp10, dp11, dp12, dp15, dp16, dp17, dp18, dp19);
#endif

int main() {
    uint16_t count = 0;
    bd.setFreq(200); // 5 ms

    while(1) {
        bd.write(count++);
        wait(0.1);
    }
}