Git Product home page Git Product logo

Comments (2)

loefstrand avatar loefstrand commented on May 30, 2024

If I comment out "#define TEST_MODE 3" from "USBCore.h" then I get the following results:

Arduino: 1.8.10 (Windows 10), Board: "Arduino/Genuino Micro"

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp: In member function 'virtual void MD_Cubo_ICS574::begin()':

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:23:3: error: 'TCCR2A' was not declared in this scope

TCCR2A = 0x00;

^~~~~~

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:23:3: note: suggested alternative: 'TCCR0A'

TCCR2A = 0x00;

^~~~~~

TCCR0A

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:24:3: error: 'TCCR2B' was not declared in this scope

TCCR2B = 0x00;

^~~~~~

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:24:3: note: suggested alternative: 'TCCR0B'

TCCR2B = 0x00;

^~~~~~

TCCR0B

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:25:22: error: 'WGM21' was not declared in this scope

TCCR2A |= (0x01 << WGM21); // CTC mode. clear counter on TCNT2 == OCR2A

                  ^~~~~

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:25:22: note: suggested alternative: 'WGM41'

TCCR2A |= (0x01 << WGM21); // CTC mode. clear counter on TCNT2 == OCR2A

                  ^~~~~

                  WGM41

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:26:3: error: 'OCR2A' was not declared in this scope

OCR2A = 10; // Interrupt every 25600th cpu cycle (256*100)

^~~~~

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:26:3: note: suggested alternative: 'OCR3A'

OCR2A = 10; // Interrupt every 25600th cpu cycle (256*100)

^~~~~

OCR3A

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:27:3: error: 'TCNT2' was not declared in this scope

TCNT2 = 0x00; // start counting at 0

^~~~~

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:27:3: note: suggested alternative: 'TCNT0'

TCNT2 = 0x00; // start counting at 0

^~~~~

TCNT0

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:28:22: error: 'CS22' was not declared in this scope

TCCR2B |= (0x01 << CS22) | (0x01 << CS21); // Start the clock with a 256 prescaler

                  ^~~~

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:28:22: note: suggested alternative: 'CS12'

TCCR2B |= (0x01 << CS22) | (0x01 << CS21); // Start the clock with a 256 prescaler

                  ^~~~

                  CS12

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:28:39: error: 'CS21' was not declared in this scope

TCCR2B |= (0x01 << CS22) | (0x01 << CS21); // Start the clock with a 256 prescaler

                                   ^~~~

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:28:39: note: suggested alternative: 'CS01'

TCCR2B |= (0x01 << CS22) | (0x01 << CS21); // Start the clock with a 256 prescaler

                                   ^~~~

                                   CS01

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:29:3: error: 'TIMSK2' was not declared in this scope

TIMSK2 |= (0x01 << OCIE2A);

^~~~~~

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:29:3: note: suggested alternative: 'TIMSK0'

TIMSK2 |= (0x01 << OCIE2A);

^~~~~~

TIMSK0

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:29:22: error: 'OCIE2A' was not declared in this scope

TIMSK2 |= (0x01 << OCIE2A);

                  ^~~~~~

C:\Users\lond\Documents\Arduino\libraries\MD_Cubo\src\MD_Cubo_8x8_ICS574.cpp:29:22: note: suggested alternative: 'OCIE0A'

TIMSK2 |= (0x01 << OCIE2A);

                  ^~~~~~

                  OCIE0A

Multiple libraries were found for "MD_Cubo.h"
Used: C:\Users\lond\Documents\Arduino\libraries\MD_Cubo
Multiple libraries were found for "SoftwareSerial.h"
Used: C:\Program
Not used: C:\Users\lond\Documents\Arduino\libraries\EspSoftwareSerial
exit status 1
Error compiling for board Arduino/Genuino Micro.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

After removing all the settings files, except for the JC from the src-folder and changed the SPI-pins in the MD_Cubo_8x8_jC.h-file, I finally is able to build and load the ยตP. :) :)

/// Marcus

from md_cubo.

MajicDesigns avatar MajicDesigns commented on May 30, 2024

The issue is caused by the define TEST_MODE being defined in both the MD_Cubo library (specific for JolliCube class) and the users's other included library (USBCore).

TEST_MODE is defined and used once only in the JC files, so the easiest user fix is to rename this in the JC header file and the JC code file to something different (eg, TEST_MODE_JC).

As this issue is very specific and affects a very small subset of users, affected users should implement the workaround above.

from md_cubo.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.