TM1638_plus 2.1.0
Arduino library for Tm1638 modules
Macros | Functions | Variables
TM1638plus_ADC_Model2.ino File Reference

demo file library for model 2 TM1638 module(16 KEY 16 pushbuttons). More...

#include <TM1638plus_Model2.h>

Macros

#define STROBE_TM   4
 
#define CLOCK_TM   6
 
#define DIO_TM   7
 
#define POT0   A0
 
#define POT1   A1
 

Functions

void setup ()
 
void Serialinit ()
 
void loop ()
 
void ModelTwoADC_One ()
 
void ModelTwoADC_Two ()
 
void ModelTwoADC_Three ()
 

Variables

bool swap_nibbles = false
 
bool high_freq = false
 
TM1638plus_Model2 tm (STROBE_TM, CLOCK_TM, DIO_TM, swap_nibbles, high_freq)
 
uint16_t sensorValue0 = 0
 
uint16_t sensorValue1 = 0
 
boolean DisplayMode = true
 
uint8_t testMode = 1
 
unsigned long previousMillis_display = 0
 
unsigned long previousMillis_button = 0
 
const long interval_display = 3000
 
const long interval_button = 225
 

Detailed Description

demo file library for model 2 TM1638 module(16 KEY 16 pushbuttons).

Author
Gavin Lyons
Note
Carries out tests demonstrating arduino library TM1638plus displaying ADC data.

Three functions / testmodes where "->" represenst delay between display modes .

  1. ADC1.ADC0 -> DATA.DATA , Demo: DisplayDecNumNibble function.
  2. ADC1.DATA -> DATA.ADC0 , Demo: mixing text label and integer number data.
  3. ADC1.DA.TA -> DA.TA.VOLT, Demo: how to use floats.

Also demo buttons as button presses is used to switch between testmodes.