Comments (2)
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.
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)
- Feature Request: Work with the Adafruit nrf52840 Express HOT 5
- New cube type using Arduino direct I/O HOT 13
- Clearing the cube doesn't work properly with my ICStation 595 4x4x4 Cube HOT 1
- Error compiling, file not found, {Case sensitive filename in Linux} HOT 1
- Demo animation OutsideStack crashing HOT 4
- Feature request: Ability to draw a plane non-parallel to corrdinates
- Feature request: Ability to 3d rotate cube content HOT 2
- The library seem not working with my 4x4x4 Led Cube based on ICS595. HOT 5
- Feature request: Trying to implement new Zirrfa 8x8x8 mono color HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md_cubo.