Comments (10)
from mozzi.
I would like to use Mozzi with the LC but the include for teensy does not seem to be aware of LC, which is the only M0 teensy. Compilation errors suggest that it thinks it's a Teensy 2 family board:
In file included from /Users/btremblay/Documents/Arduino/libraries/Mozzi/MozziGuts.h:193:0,
from /Users/btremblay/Sinewave/Sinewave.ino:19:
/Users/btremblay/Documents/Arduino/libraries/Mozzi/AudioConfigTeensy3_12bit.h:4:2: warning: #warning If you get a compilation error you should probably update Teensyduino to its latest version [-Wcpp]
#warning If you get a compilation error you should probably update Teensyduino to its latest version
^
In file included from /Users/btremblay/Documents/Arduino/libraries/Mozzi/MozziGuts.h:193:0,
from /Users/btremblay/Documents/Arduino/libraries/Mozzi/MozziGuts.cpp:15:
/Users/btremblay/Documents/Arduino/libraries/Mozzi/AudioConfigTeensy3_12bit.h:4:2: warning: #warning If you get a compilation error you should probably update Teensyduino to its latest version [-Wcpp]
#warning If you get a compilation error you should probably update Teensyduino to its latest version
^
/Users/btremblay/Documents/Arduino/libraries/Mozzi/mozzi_rand.cpp:148:2: warning: #warning Automatic random seeding not implemented on this platform [-Wcpp]
#warning Automatic random seeding not implemented on this platform
^
/Users/btremblay/Library/Arduino15/packages/teensy/hardware/avr/1.57.1/libraries/ADC/AnalogBufferDMA.cpp: In member function 'void AnalogBufferDMA::init(ADC*, int8_t)':
/Users/btremblay/Library/Arduino15/packages/teensy/hardware/avr/1.57.1/libraries/ADC/AnalogBufferDMA.cpp:175:26: error: call to 'ADC::enableDMA' declared with attribute error: Use adc->adcX->enableDMA instead
adc->enableDMA(adc_num);
^
exit status 1
Compilation error: exit status 1
from mozzi.
Hi,
Normally the LC does work straight with Mozzi (see #138), tested by me and working at least if you do not use I2C.
In your error message:
warning If you get a compilation error you should probably update Teensyduino to its latest version
Are both Arduino and Teensyduino are up-to-date? I had error similar when making the port with the old version of Teensyduino.
from mozzi.
I can compile if I set my board to Teensy 3.x or Teensy 4.x, but not LC.
I'm using the latest Mozzi and the latest Teensyduino. I have removed all my exotic board libraries like stm32.
I think the hardware_defines.h is making Teensy LC as AVR.
from mozzi.
This is weird, I'll test on my setup this evening. Thanks for the feedback!
from mozzi.
Just tested. I worked with the previous version of Teensyduino, but, after updating, I get the same error.
Actually, the error is in the ADC library of Teensyduino (or more precisely, the ADC library embedded in Teensyduino), because the following sketch:
#include <ADC.h> void setup() {} void loop() {}
Does not compile…
There is actually an (old!) PR pending on this issue: pedvide/ADC#81
A quick fix, for you, would be to apply the patch proposed in the PR to your library. I put a comment there, hopefully this will be fixed in the teensyduino library.
Will close this old issue soon as the source of the error is not Mozzi…
Hope it helps,
from mozzi.
@tomcombriat Thanks for taking time for this!
Do I need to ping pjrc to get the adc library working?
from mozzi.
(meanwhile I will use some other boards)
from mozzi.
@bptremblay If you have the time I would be grateful. I commented on the ADC library but I am not sure a lot happens there. Probably pjrc has their own fork anyway.
Closing this as the issue is not related to Mozzi.
from mozzi.
Note:
The ADC lib has been updated. Hopefully, this will get through pjrc next version. pedvide/ADC#81
from mozzi.
Related Issues (20)
- RFC: Analog input scaling - what's the best approach HOT 3
- Allow to disable twi_nonblock HOT 5
- Review uses of "int", and "long" data types.
- Optimization of `Oscil::phMod()`
- GP0 io issues on RP2040 HOT 7
- Force PWM mode for power supply on GPIO, or suggest it in documentation
- I2S dacs config in Mozzi2 HOT 9
- A question, not an issue per se: lgt8f328p HOT 2
- RP2040 is out of tune HOT 5
- URL to webpage in _About_ section is wrong HOT 2
- Port for PY32f002 - PY32F003 -PY32F030? HOT 2
- HTML styling not rendering in the Github's Readme HOT 8
- Teensy (3.6 and 4.1) CI jobs are failing HOT 1
- AudioInput does not compile with Mozzi 2.0
- ESP32 21:58:07.296 -> E (200) ADC: CONFLICT! driver_ng is not allowed to be used with the legacy driver HOT 3
- Mozzi not working on STM32 HOT 8
- MIDI port disappearing when adding Mozzi to RP2040 HOT 15
- Mozzi envelope how to produce long note HOT 4
- How do you do filter envelopes? HOT 3
- Arduino Uno R3 not enough memory HOT 2
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 mozzi.