Display_Lib_RPI 2.3.0
A C++ Library to connect electronic displays to Linux single board computers.
Loading...
Searching...
No Matches
main.cpp File Reference

A demo file library for TM1638 module Works on Model 2 Carries out series of tests demonstrating arduino library TM1638plus. Project Name: Display_Lib_RPI URL: https://github.com/gavinlyonsrepo/Display_Lib_RPI. More...

#include <TM1638plus_Model2_RDL.hpp>
#include <ctime>
#include <signal.h>
#include <cstdlib>

Detailed Description

A demo file library for TM1638 module Works on Model 2 Carries out series of tests demonstrating arduino library TM1638plus. Project Name: Display_Lib_RPI URL: https://github.com/gavinlyonsrepo/Display_Lib_RPI.

Author
Gavin Lyons
Test:
  1. Test 0 reset test
  2. Test 1 decimal and float numbers
  3. Test 2 Hexadecimal number
  4. Test 3a 3b & 3C using DisplaySegments method
  5. Test 4 strings
  6. Test 5 ASCIItoSegment method
  7. Test 6 Brightness and reset
  8. Test 7 scroll text
  9. Test 8 Buttons , ReadKey16() returns byte 1-16 decimal, press S16 to goto test9
  10. Test 9 Buttons , Readkey16Two() alternate buttons function.

The tests will increment automatically with exception of 8 & 9, Pressing Switch 16 during test 8 moves to test 9 and pressing it during test 9 ends program.