Search results

  1. K

    Ideas on data transfer

    I want to transfer data from PC to teensy 3.0 via usb serial. In my scenario chunks of data are files resident on PC. My idea is to wrap data in a package like this: COMMAND | DATA_LENGTH | DATA COMMAND in my case is e.g. transfer - 0x01 DATA_LENGTH would be number of bytes to be transferred...
  2. K

    Teensy 3 using IO pins

    Thank you very much for detailed explanation. I was using native code for faster bit writing (on arduino). I'm working with shift registers which use 3 pins - clock, latch, data and using the bitSet / bitClear was much faster way to send bits to them. Will try now digitalWriteFast. Thanks again!
  3. K

    Teensy 3 using IO pins

    Hello! I've cooked a quick example, which sets bits on port C, pin 13 (LED): void setup() { //set pins to output pinMode(13, OUTPUT); } void loop(void) { // digitalWrite(13, HIGH); PORTC |= (1<<5); delay(500); // digitalWrite(13, LOW); PORTC &= ~(1<<5); delay(500); } Acording...
Back
Top