Comments (4)
Hi,
thanks, you are the first to report a test on Teensy 2.
I've tried pasting the code below into the utils.h file in the Mozzi folder, and now it compiles. But I don't have a Teensy 2 to test it properly.
If you have time to try it, I would be very interested to know how it goes, so it can be fixed or included in the next update of the library.
Probably the most sensible place to paste it is just before the analogRead stuff in utils.h.
// hack for Teensy 2 (32u4), pasted from hardware/arduino/variants/leonardo/pins_arduino.h
// AVR_ATmega32U4 has an unusual mapping of pins to channels
#if defined(AVR_ATmega32U4)
extern const uint8_t PROGMEM analog_pin_to_channel_PGM[];
#define analogPinToChannel(P) ( pgm_read_byte( analog_pin_to_channel_PGM + (P) ) )
#endif
thanks,
tim
from mozzi.
Hi,
I pasted your code before "void setupFastAnalogRead();" and it compiles.
The teensy2 run the code and produce sounds. The library seems to works with Teensy2 : D
Thanks.
EDIT: I got another problem. I tested all the examples and the nĀ° 12_Samples doesn't compile,
_12_Samples.ino: In function 'void updateControl()':
_12_Samples:38: error: 'byteMod' was not declared in this scope
from mozzi.
Hi,
With the last update all work š
from mozzi.
I am having the same problem but the fix above does not solve the problem.
Mozzi/mozzi_analog.cpp.o: In function adcStartConversion(unsigned char)': /Users/xxx/Documents/Arduino/libraries/Mozzi/mozzi_analog.cpp:115: undefined reference to
analog_pin_to_channel_PGM'
Where do i have to add the above fix to make it work?
from mozzi.
Related Issues (20)
- 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 3
- 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 5
- How do you do filter envelopes? HOT 3
- Arduino Uno R3 not enough memory HOT 2
- StereoOutput Constructor to send 2xStereo/4xMono HOT 2
- 04.Audio_Input error 'AUDIO_INPUT_PIN' was not declared in this scope HOT 8
- RP2040 PlatformIO lacks PWMAudio dependency HOT 6
- Mozzi on ESP32 with I2S Codec HOT 1
- Running the most basic program on Pico rp2040 resulted in the following error: HOT 6
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.