// *************************************************************************
// ************************ VirtuinoCM ***************************
// *************************************************************************
//#include <SoftwareSerial.h>
//SoftwareSerial espSerial = SoftwareSerial(2,3); // arduino RX pin=2 arduino TX pin=3 connect the arduino RX pin to esp8266 module TX pin - connect the arduino TX pin to esp8266 module RX pin
//-------------VirtuinoCM Library and settings --------------
//#include "VirtuinoCM.h"
//VirtuinoCM virtuino;
#define V_memory_count 32 // the size of V memory. You can change it to a number <=255)
float V[V_memory_count]; // This array is synchronized with Virtuino V memory. You can change the type to int, long etc.
//String T0=""; // This text variable is synchronized with the Virtuino pin T0
//String T1=""; // This text variable is synchronized with the Virtuino pin T1
// Only the pins T0 and T1 are supported on this code.
// if you want to support more of them enable the next lines. Then make the same on the functions onRequested & onReceived
//String T3=""; // This text variable is synchronized with the Virtuino pin T3
//String T4=""; // This text variable is synchronized with the Virtuino pin T4
// ... T99
//boolean debug = true; // set this variable to false on the finale code to decrease the request time.
// *************************************************************************
#include <SevSeg.h>
SevSeg sevseg;
// Your 7-Segment display type: COMMON_ANODE or COMMON_CATHODE
#define DISPLAY_TYPE COMMON_ANODE
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
byte digits = 4;
byte digitPins[] = {2, 3, 4, 5};
byte segmentPins[] = {6, 7, 8, 9, 10, 11, 12};
bool resistorsOnSegments = false;
bool updateWithDelays = false;
bool leadingZeros = true;
bool disableDecPoint = true;
sevseg.begin(DISPLAY_TYPE, digits, digitPins, segmentPins, resistorsOnSegments,
updateWithDelays, leadingZeros, disableDecPoint);
sevseg.setBrightness(90);
LCD_setup();
}
void loop() {
// put your main code here, to run repeatedly:
//sevseg.refreshDisplay();
//sevseg.setNumber(8000);
LCD_loop();
}