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)
- multiline2.h non-functional? HOT 2
- Make new release HOT 15
- triangle warm 8129 table includes values outside valid range HOT 1
- Arduino giga port HOT 4
- getAudioInput not defined HOT 2
- The randSeed() argument type is different in the header and source files. HOT 2
- Stereo - Strange error compilation depending if a function was define before updateAudio() - Problem with preprocessor ? HOT 3
- Compilation errors when including both WaveFolder.h and ResonantFilter.h HOT 3
- Unable to compile for Atmega328PB with Arduino IDE HOT 3
- Sample example not working on UNO R4 HOT 11
- Arduino Nano 33 IoT tested and works with the output on DAC0, which is also called A0 HOT 2
- Output frequency 0.25% off on AVRs HOT 1
- RFC: Mozzi 2.0 part 1: Single compilation unit HOT 7
- RFC: Mozzi 2.0 part 2 - Configuration restructuring HOT 7
- Improving fixMath HOT 5
- Please Change Mozzi's License HOT 10
- Using Mozzi and I2C library for LCD HOT 14
- RFC: Mozzi 2.0 part 3 - Miscellanious
- UNO R4 port broken HOT 2
- Compatability/Compilation Issues w/ Nano 33 BLE Sense HOT 5
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.