GithubHelp home page GithubHelp logo

Teensy 3.2 -> 4.0 Migration about 16n HOT 5 OPEN

janczmok1970 avatar janczmok1970 commented on August 20, 2024
Teensy 3.2 -> 4.0 Migration

from 16n.

Comments (5)

eagereyes avatar eagereyes commented on August 20, 2024

I just built a 16n using a Teensy 4.0 and it works with basically no modifications. I just commented out all the I2C code because the i2c_t3 library doesn't exist on 4.0 and I don't need I2C anyway.

That aside, it works just fine if I set the maximum raw value in the config utility to 4090. I bet there's a setting somewhere to get higher resolution, but since we're only sending 7-bit values anyway, it doesn't matter.

from 16n.

angiamusic avatar angiamusic commented on August 20, 2024

I just built a 16n using a Teensy 4.0 and it works with basically no modifications. I just commented out all the I2C code because the i2c_t3 library doesn't exist on 4.0 and I don't need I2C anyway.

Would you mind uploading it as a fork or something? I can't seem to get it to work at all, but then I also failed basic HTML in school. Teensy 4.0 support in general should be a concern for this project as Teensy 3.2s have been out of production since October 2023.

from 16n.

eagereyes avatar eagereyes commented on August 20, 2024

Hi, I've forked the repo and uploaded my modified version of the firmware here: https://github.com/eagereyes/16n-for-Teensy-4.0 It also includes a compiled .hex file for use on Teensy 4.0. Let me know if it works for you!

from 16n.

Cy-Rot avatar Cy-Rot commented on August 20, 2024

Hi, the hex file works fine, but I can't compile the source code.
I was on an older version of the arduino Ide, wich raised a lot of errors with midi.h.

I upgraded to 2.3.2 now but there are still a lot of warnings concerning sign and unsigned values and one ( as I assume) error, which prohibits the teensy from connecting as a usb midi interface to my computer:


__In file included from C:\Users\samoz\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\MIDI\src/MIDI.h:307,
from C:_DATEN\05_THO\CyFader\Cy_16n-for-Teensy-4.0main\firmware\16n_faderbank_firmware\16n_faderbank_firmware.ino:22:
C:\Users\samoz\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\MIDI\src/MIDI.hpp:492:74: note: initializing argument 1 of 'void midi::MidiInterface<Transport, _Settings, _Platform>::sendRealTime(midi::MidiType) [with Transport = midi::SerialMIDI; _Settings = midi::DefaultSettings; Platform = midi::DefaultPlatform]'
492 | void MidiInterface<Transport, Settings, Platform>::sendRealTime(MidiType inType)
| ~~~~~~~~~^~~~~~


Maybe you've have an idea how I could solve this?

from 16n.

infovore avatar infovore commented on August 20, 2024

I believe 4.0 is pin compatible; the firmware will require recompiling. The hex file linked above by @eagereyes might be your best bet. Meanwhile, I've also made a branch that reverts to using Wire.h; the main advantage of that would be that Teensy 4 boards could be used along with I2C.

I do not, however, have a Teensy 4.0 to test with.

from 16n.

Related Issues (20)

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.