Latest activity

  • R
    For reference, here is an ILI9488 (very similar to the HX display) driven via 8 bit 8080 with DMA on the MicroMod Teensy
  • W
    @AntiLoop It seems you want to send 8 sines from CS42448 to the PC, I have uploaded the code successfully and I have received the correct signal in Mac, just with the same repeated cut-off (regular repeating on and off). But what I want now is...
  • R
    @TalkRock ontop of what Kurt mentioned, if you do want to use DMA with the libraries mentioned above, you can use the MicroMod Teensy, which is basically a Teensy 4.x It does not have Ethernet or PSRAM, but it has almost everything else you can...
  • wwatson
    The 40-45 were for some custom boards, that were made by some forum members DogBone/Rezo... I had it on one known as DogBone 4.5 I think... Note: Most of these display libraries have a file named something like in the case I am looking at...
  • KurtE
    The 40-45 were for some custom boards, that were made by some forum members DogBone/Rezo... I had it on one known as DogBone 4.5 I think... Note: Most of these display libraries have a file named something like in the case I am looking at...
  • defragster
    defragster reacted to fitball's post in the thread Multiple definitions of 'loop' with Like Like.
    Yes, I worked out details for the priority director. Among other things I penciled simulations of 12-bit to 14-bit word lengths to achieve the least number of overall BITS for test programs! Unfortunately, we had to use unreliable transistors for...
  • F
    fitball replied to the thread Multiple definitions of 'loop'.
    Yes, I worked out details for the priority director. Among other things I penciled simulations of 12-bit to 14-bit word lengths to achieve the least number of overall BITS for test programs! Unfortunately, we had to use unreliable transistors for...
  • T
    Hi Kurt I think these libraries will greatly hep me in achieving my goals of programing with the HX8357D so for that I am grateful. While trying to setup the HX8357D_test_rects I got confused on how to wire the display with the standard teensy...
  • defragster
    Wow - That adds up ... Westinghouse Electric Company was involved in the project during the late 1950s ... The first process computer in the PRODAC family was the PRODAC 4449, which had the following innovative solutions: Priority interrupts...
  • F
    fitball replied to the thread Multiple definitions of 'loop'.
    Yes, I'm sorry that the closed bracket issue was my mistake made in the heat of battle. The latest recommendation works as it should. My code, with similar structure, also compiles now. However my code getting the "multiple...loop" error caused...
  • J
    One IDE Tool that is very helpful is " Ctrl + T ": Taking the Code from post #19 and then hitting Ctrl+T here results in this that quickly presents a view of the source as the compiler might see it. The indenting goes very wrong and on...
  • defragster
    One IDE Tool that is very helpful is " Ctrl + T ": Taking the Code from post #19 and then hitting Ctrl+T here results in this that quickly presents a view of the source as the compiler might see it. The indenting goes very wrong and on...
    • 1728076040218.png
  • defragster
    defragster reacted to jmarsh's post in the thread Multiple definitions of 'loop' with Like Like.
    Yes we do: https://github.com/PaulStoffregen/cores/blob/master/teensy4/Blink.cc The linker typically discards it because the sketch provides setup() and loop() symbols before the core library gets pulled in.
  • PaulStoffregen
    Look, I know you've had a rough and frustrating experience, and right now you're probably not feeling very confident in the tools and compiler. But it really is working properly.
  • PaulStoffregen
    To explain what went wrong with the code in msg #19, is also a simple mistake in your code. Arduino IDE and the compiler are working exactly as they should. The problem is the close bracket that ends your setup() function went away. This is...
    • 1728075370464.png
  • PaulStoffregen
    It is indeed something very simple, exactly has jmarsh explained. Your variables "velocity" and "note" are local to only the setup() function. Using them in the loop function is an error. You need to create the code like this: int velocity =...
    • 1728074788785.png
  • F
    fitball replied to the thread Multiple definitions of 'loop'.
    void setup() { // put your setup code here, to run once: } int velocity = 80; // Velocity int note=20; // Piano note void loop() { usbMIDI.sendNoteOn(note, velocity, 1); delay(1000)...
  • el_supremo
    Post the code which produced the errors in your message #17. You've got some misplaced braces somewhere. Pete
  • A
    @Weiweiweiwear: Thank you for the test. At least we know you problem has nothing to do with your audio codec or its configuration. Once I had a similar problem and the reason in my case was a broken usb cable. I connected the Teensy and started...
  • F
    fitball replied to the thread Multiple definitions of 'loop'.
    Many thanks to the reviewers who have joined in. In response to jmarsh: Setup left in and declarations placed below it. The error changed to...
  • J
    jmarsh replied to the thread Multiple definitions of 'loop'.
    Don't put the velocity and note definitions inside the setup() function.
  • F
    fitball replied to the thread Multiple definitions of 'loop'.
    I put the SETUP example in a prior post but here it is again: void setup(){ int velocity = 80; // Velocity int note=20; // Piano note } void loop() { usbMIDI.sendNoteOn(note, velocity, 1); delay(1000)...
  • TomChiron
    TomChiron reacted to jmarsh's post in the thread Multiple definitions of 'loop' with Like Like.
    You need the setup() function in the same file as loop(). Why did you remove it? The copy of the Blink program in the core usually gets ignored because it contains only a setup() and loop() function, which both get overridden by your program...
  • KurtE
    I'm going to go with answers: no and probably not, but maybe. First, no, chips added to the bottom of Teensy 4.1 aren't ever accessed as EEPROM. They are used with LittleFS as a filesystem. Maybe that can be useful, but if you're expecting it...
  • TomChiron
    TomChiron reacted to jmarsh's post in the thread Multiple definitions of 'loop' with Like Like.
    You MUST have a setup() function. It will not work without one.
  • S
    shawn replied to the thread Teensy 4.1 commercial product.
    Question: What is “CE”? (Update: I think it’s that European conformance thing?) The Teensy is great for commercial products. It’s robust and well-designed. I think of it as occupying two possible levels: 1. Providing a design where you build the...
  • J
    jmarsh replied to the thread Multiple definitions of 'loop'.
    You MUST have a setup() function. It will not work without one.
  • F
    fitball replied to the thread Multiple definitions of 'loop'.
    Thanks for the Code tag usage. Only the default file loaded (no tabs) and MIDI code typed in on top of default code. I removed 1.59.0 and reinstalled. Same result. There must be hidden variables somewhere in App_Data or the code folder. /*...
  • O
    I opened an issue already and he try to help me , but it still not working. Library that work with arduino uno not working with Teensy4.1, what could be the gap between them? What I show above that other sketch working, with spi communication...
  • J
    jmarsh replied to the thread Multiple definitions of 'loop'.
    Yes we do: https://github.com/PaulStoffregen/cores/blob/master/teensy4/Blink.cc The linker typically discards it because the sketch provides setup() and loop() symbols before the core library gets pulled in.
  • E
    @jmarsh. The various packages (arduino, STM32, ESP32, and Teensy) have their own folders for libraries. I'm very careful about using brackets (<>) and double-quotes on the proprocessor directives. The search path for "" should be Project...
  • PaulStoffregen
    In Arduino IDE, click Ctrl-A to select all code, and Ctrl-V to copy to clipboard. Then in the forum on your browser, click this button. In the popup box, press Ctrl-C to copy your code. Arduino IDE can open more than 1 file. If you have...
    • 1728063396284.png
  • PaulStoffregen
    That is very strange. We don't have any "Blink.cc" file in the core library code, which would be installed at AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\cores\teensy4/Blink.cc. Are you using Arduino IDE 2.3.3? Or another...
  • F
    fitball replied to the thread Multiple definitions of 'loop'.
    Thanks for your attention and replies. I don't know how to use tag (</> for the code? Please advise. Here I'm using BOLD to distinguish comment from code. I didn't have a Setup in the code that was working before. Only a lot of initializing code...
  • el_supremo
    Hmmm. Or maybe not. That would give a different error message. Pete
  • el_supremo
    What you've done is add a loop() function inside the loop function like this: void loop() { // put your main code here, to run repeatedly: int velocity = 80; // Velocity int note=20; // Piano note void loop() { // put your main code here, to...
  • J
    jmarsh replied to the thread Multiple definitions of 'loop'.
    You need the setup() function in the same file as loop(). Why did you remove it? The copy of the Blink program in the core usually gets ignored because it contains only a setup() and loop() function, which both get overridden by your program...
  • J
    It looks like you are linking with some Arduino core other than Teensy, i.e. core.a. Is that the entire sketch? Please post the entire sketch, and please use the "code" tag (</> in the message window) when you post code to the forum.
  • T
    Yes, actually there's a voltage divider before to adjust the leel but that won't actually be a good protection if a spike or a greater signal is provided. The idea is to have that input gain adjustment because signals can vary a lot from 200mVpp...
  • F
    fitball replied to the thread Multiple definitions of 'loop'.
    Static code upon startup: void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } Complier msg: ening Teensy Loader... Memory Usage on Teensy 4.1: FLASH: code:8932, data:3016...
  • J
    Can you post the simple sketch and error messages?
  • TomChiron
    TomChiron replied to the thread Multiple definitions of 'loop'.
    Have you tried to compile other sketches from the examples?
  • TomChiron
    You say there is a buffer? Could you use a voltage divider as shown here? https://learn.sparkfun.com/tutorials/proto-pedal-example-programmable-digital-pedal BTW maximum rating is VDDA+0.3, i.e. 3.6 V where a damage can start.
  • F
    I developed some MIDI code for a hobby project and Aurduino worked, ie, compiled, loaded, Teensy ran, and Serial and MIDI monitors worked. Also Windows 10 accepted the MIDI data and played correctly. Recently I began to get the 'multiple...loop'...
  • KurtE
    I have played some with the HX8357D in parallel mode. Some of this is discussed in the thread: https://forum.pjrc.com/index.php?threads/ili948x_t41_p-a-parallel-display-driver-for-teensy-4-1.72660/page-7#post-346753 The experimental code is up...
  • T
    Can you please let me know a some example codes in Arduino that I can save the data and access data on the flash memory based on address ?
  • A
    Into the waves:
    • Goldwave 8 channels(2).png
  • T
    I need none violative memory that can access with address. Do you think I can use flash chip for storage and access via address.?
  • A
    Hey Weiweiweiwear,try this sketch,i just tested with goldwave,it's okay #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> // GUItool: begin automatically generated code AudioSynthWaveformSine...
    • Goldwave 8 channels.png
  • S
    Okay, first things first, it looks like this is using the HX8357D controller (found here). Looking at one of the examples for pin definitions and I see this...
Back
Top