Marcin_B Posted May 7, 2016 Posted May 7, 2016 (edited) Hi! I trying to connect the 7-segment display at the clock A-10C(only seconds). Unfortunately, my code is an error that can not be found. Does anyone have an idea what's wrong? #define DCSBIOS_IRQ_SERIAL #include <DcsBios.h> #include "SevSeg.h" SevSeg sevseg; //Instantiate a seven segment controller object byte numDigits = 2; byte digitPins[] = {10,11}; byte segmentPins[] = {2, 3, 4, 5, 6, 7, 8}; void onClockSsChange(char* newValue) { sevseg.begin(COMMON_ANODE, numDigits, digitPins, segmentPins); //sevseg.setBrightness(90); //sevseg.setNumber(0, 1); sevseg.refreshDisplay(); // Must run repeatedly } DcsBios::StringBuffer<2> clockSsBuffer(0x1102, onClockSsChange); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } Edited May 7, 2016 by Marcin_B
Recommended Posts