teensy

How to find specific Teensy in COM list

独自空忆成欢 提交于 2020-01-07 04:38:10
问题 I am new to this so my first project is making a Skype notification cube from a TeensyLC and some LEDs. I know I can hard-code the COM port for communications but if I unplug it and use a different plug my COM port changes. I'd like to be able to plug the board in and have the software find it automatically. [Edit] It looks like I didn't express myself well the first time, so let me try this again. If I call SerialPort.GetPortNames() I get an array of {"COM1", "COM2", "COM3"}. If I make a new

VirtualBox Keystroke gets random changes

喜你入骨 提交于 2019-12-14 02:44:00
问题 I have a school project about it security. My job is it to customize a hardware mouse with a usb hub and a teensy to program it. The code on the teensy gets executed when it gets dark (light dependent resistor). The code takes some files on the win7 vm and upload them to an Apache2 server hosted on a kali vm (via cmd commands in win7 vm). Everything works fine in vmware, but I have to use virtualbox for my project. My problem is now that in virtualbox the cmd commands randomly changes with

Teensy USB in VirtualBox

こ雲淡風輕ζ 提交于 2019-12-12 06:59:33
问题 yesterday i had a problem with my teensy usb in virtualbox getting random keystroke changes, however i fixed it and it works perfectly fine now (i hope, tested it 10 times). Heres the post if u are interested :) VirtualBox Keystroke gets random changes However ive got a another little problem now -.- it only works if i manually bind my teensy as usb to the virtualbox. But atm i have to do that every time i connect my teensy to the pc or after reboot of the vm. i tried doing it with a filter

How to find the address of a variable when using AVR?

痞子三分冷 提交于 2019-12-11 06:02:29
问题 I am trying to write a program that detects pixel level collision of bitmaps on a Teensy micro controller compiling with AVR-GCC. I am trying to work out how to calculate the position of a single byte of the bitmap on the screen and have been told I should be using pointers. I don't see the relationship between the physical address of a bitmap byte and it's position on the screen, but I would like to investigate. The problem is, I have no way of printing this address. AVR doesn't have printf

USB: low latency (< 1ms) with interrupt transfer and raw HID

微笑、不失礼 提交于 2019-12-05 05:17:10
问题 I have a project that requires reading an external IMU gyroscope data at regular interval and sending the data over to an Android phone. I am using a teensy 2.0 board to query the IMU via I2C and send it over USB using raw HID. I am using RawHID variable which is declared in usb_api.h of usb_rawhid of teensyduino. I have read that a full-speed USB using interrupt transfer can have a 1ms maximum latency and would like to achieve this 1ms maximum latency. I am not sure what to look for to