Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 11 months ago.
code
i want to print 1 to f on tm1640 can any 1 help me out.
Question relating to:
1 Answer
7 years, 11 months ago.
The mbed_TM1640 example code on the component page here should get you started. Here is a very basic version of the example code:
#include "mbed.h" #include "TM1640.h" Serial pc(USBTX, USBRX); //TM1640_LM1640 declaration TM1640_LM1640 LM1640(p5,p7); int main() { pc.printf("Hello World\r\n"); // LM1640.cls(); LM1640.setBrightness(TM1640_BRT3); for (int cnt=0; cnt<=0xF; cnt++) { LM1640.locate(0); LM1640.printf("%02x", cnt); wait(0.2); } }