Search results

  1. P

    USB violin (sound over USB without external ADC)

    Hi all, I'm trying to use the Teensy as a sound card without any physical sound device. I read the note that you need to use one non-USB input, but I'm not sure what that means, and I can't get it to work. In fact, I can't get any of the examples to work, because they all rely on an external...
  2. P

    Capacitive touch position sensing?

    I've been looking at the examples for the touch pins on the teensy, and all of them pretty much use it as a button. I'm wondering if these pins are suitable for detecting position like on touch screens? From wikipedia it seems that the way to do this is to measure at the 4 corners of the touch...
  3. P

    Teensy 3.1 analog out to inverting opamp pin

    IIRC the DAC has a limit of like 1mA. In an inverting opamp config, the two inputs form a virtual ground. So say you put your reference at 2.5V with a total range of 5V. This means that your input resistor is essentially connected to 2.5V. So with a resistance of more than 2k5 the current will...
  4. P

    Highly optimized ILI9341 (320x240 TFT color display) library

    Nope. In 8080 mode there is a pin that can be configured to go low in vblank, but it's not broken out on the board. In RGB mode you send the vblank, but again I'm not sure if the right pins are available, and the library uses SPI mode, so you're SOL.
  5. P

    Highly optimized ILI9341 (320x240 TFT color display) library

    I came across this library, and thought I should mention that there have been other efforts to optimise the code for Arduino Due and Mega. https://forums.adafruit.com/viewtopic.php?f=31&t=60072 https://github.com/adafruit/Adafruit_ILI9341/pull/3 On the Due speed was obviously much better, but my...
  6. P

    Program Teensy 2.0 in assembly?

    Actually, never mind. After resetting the Teensy it works. So you need to do both a download AND a reset? I previously only used the Arduino IDE, so I assume the upload button worked the same way. I found out by looking at the disassembly of the C file and the ASM file. They where identical.
  7. P

    Program Teensy 2.0 in assembly?

    I think so... From what I gather it depends on if you use avr-gcc or Atmel Studio. I used avr-gcc. http://ugweb.cs.ualberta.ca/~c274/resources/tools/doc/avr-libc/avr-libc-user-manual-1.7.1/assembler.html...
  8. P

    Program Teensy 2.0 in assembly?

    I'm trying to program the Teensy using assembly language for educational and yak shaving purposes. For starters, I thought I'd turn on the LED. The equivalent C would be #include <avr/sfr_defs.h> void setup() { DDRD |= _BV(6); PORTD |= _BV(6); } void loop() { } This works...
  9. P

    Arduino 1.6.0 - any plans to support it?

    I have a RAW HID sketch that works great on my Teensy 3.1, but I just tried compiling it for my just-arrived Teensy 2.0 and I get an error that seems to be located on the line where the RAW HID code is loaded. Arduino: 1.6.0 (Mac OS X), TD: 1.21-beta6, Board: "Teensy 2.0, Raw HID, 16 MHz, US...
  10. P

    Burn Teensyduino program to ATmega8U2

    I completely understand. Thanks a lot.
  11. P

    Burn Teensyduino program to ATmega8U2

    Thanks for the quick reply. And if I used a 32u4 like on the Teensy 2.0?
  12. P

    Burn Teensyduino program to ATmega8U2

    I wrote a small sketch in Teensyduino that uses RawHID. It works like a charm on my Teensy 3.1 and I assume it also works on Teensy 2.0(which is on its way). However, in the future I plan to make a custom board wit an ATmega8u2 or similar. Is it possible to use an SPI programmer with...
  13. P

    Teensy 3.1 mouse resets to center of screen.

    I finished my mouse, but this prevents me from playing games with it for the same reasons you can't play games with a tablet. The game will reset the cursor to the center of the screen every frame, and then the mouse will reset it to a fixed position on the screen.
  14. P

    Interrupts missing

    Maybe, it's connected to the ADNS-9800, and the sample code and video did not have any software or hardware pull-ups as far as I can tell. I tried, and it still happens. The symptoms of that would be different I think. I did a serial print of the mot pin and the value of mouse_has_data. After...
  15. P

    Interrupts missing

    On my Teensy 3.1 I have one interrupt that runs a lot which sets a flag for the main loop to look at some value. // optical sensor pinMode(9, INPUT); attachInterrupt(9, pointer_moved, FALLING); So the pin goes low, the flag gets set, data is read, the pin goes back up. volatile...
  16. P

    Teensy 3.1 mouse resets to center of screen.

    I think I found the bit to change. Compare 0x09, 0x30, // Usage (X) 0x09, 0x31, // Usage (Y) 0x15, 0x00, // Logical Minimum (0) 0x26, 0xFF, 0x7F, // Logical Maximum (32767)...
  17. P

    Teensy 3.1 mouse resets to center of screen.

    You could maybe make the screen size setup call change the device mode? Without setting the screen size, it's a mouse, after setting the screen size it's a Wacom. Or maybe it can be both, seeing that it is already a mouse, keyboard, joystick and serial console at the same time. As it is now, it...
  18. P

    Teensy 3.1 mouse resets to center of screen.

    When I run below example code on my Teensy(duino) 3.1 connected to my Mac, it jumps to the center, and any movement with my real mouse is ignored/reset. In other words, the Teensy is positioning my cursor absolute instead of relative. Even if I only use the scroll or click function, it jumps...
Back
Top