Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: thagh05t

Search: Search took 0.00 seconds.

  1. Replies
    17
    Views
    338

    All of the serial number generation for each...

    All of the serial number generation for each teensy is found in the same file. I'll throw together something easily imported that returns a struct of the different identifying components broken down....
  2. Replies
    17
    Views
    338

    I basically just used the code from usb_desc.c to...

    I basically just used the code from usb_desc.c to port my project over. Big help btw, I'd seen the code you posted a snippet of before, but just thought it was too easy.

    I've not created a library...
  3. Replies
    17
    Views
    338

    Hey @grease_lightning, Yea, I am aware of...

    Hey @grease_lightning,

    Yea, I am aware of TeensyID... That is the library I have been talking about since my initial post albeit I didn't specifically refer to it by name.

    TeensyID does not...
  4. Replies
    17
    Views
    338

    I have hammered out methods for determining the...

    I have hammered out methods for determining the MAC and in turn USB Serial Number for each MCU >= 3.1.

    The library linked in my original post has a lot of the work already done, so I could quite...
  5. Replies
    17
    Views
    338

    It appears that all 3 are parts of the MAC...

    It appears that all 3 are parts of the MAC address, they are as follows:

    HW_OCOTP_MAC2 - Padding
    HW_OCOTP_MAC1 - OUI
    HW_OCOTP_MAC0 - UID

    Together they make up the mac address.

    The serial...
  6. Replies
    17
    Views
    338

    Thanks a bunch @defragster this has me on the...

    Thanks a bunch @defragster this has me on the right track.
  7. Replies
    17
    Views
    338

    Serial & MAC Address - Teensy 4.0

    Hello All,

    I was wondering if anyone has found a way to pull the serial or MAC address for the Teensy 4.0

    I started looking over my code for 3.x and scouring Paul's git for some clues, but I am...
  8. Replies
    13
    Views
    443

    This was actually really helpful in answering my...

    This was actually really helpful in answering my questions. Just goes to show what a little reading can achieve. I honestly had never read it, and I've been dealing with spi for years..
  9. Replies
    13
    Views
    443

    What do you suppose this does? Or do you do this...

    What do you suppose this does? Or do you do this just for sanity.. I guess I have always relied on default SPISettings and the CS pin to drive the transaction, which is why my code hung. So far...
  10. Replies
    13
    Views
    443

    Curiously enough, I have resolved my issue by...

    Curiously enough, I have resolved my issue by adding the 'SPI.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE0));' and 'SPI.endTransaction();' methods in their respective locations. I have...
  11. Replies
    13
    Views
    443

    I am also noticing issues with SPI on Teensy 4....

    I am also noticing issues with SPI on Teensy 4. Code written for 3.2 does not run on Teensy 4. Debugging, it seems to just hang on 'SPI.transfer(c);' with no further code execution. Any know issues??
  12. Replies
    12
    Views
    9,648

    I think i grasp the concept of a voltage divider...

    I think i grasp the concept of a voltage divider now. I was told by someone to use proportional mapping by using a voltage divider to bring the Vin down to a bit less than the Internal reference (1.2...
  13. Replies
    12
    Views
    9,648

    Vin----R1----ADC----R2----AGND ?

    Vin----R1----ADC----R2----AGND ?
  14. Replies
    12
    Views
    9,648

    So by connecting the Vin to R1, R1 to R2 to AGND,...

    So by connecting the Vin to R1, R1 to R2 to AGND, and A9 between R1 and R2 I should get a 3.3v reading? Which then I can sample and do some math to determine the actual input voltage from Vin? (Vin...
  15. Replies
    12
    Views
    9,648

    Great, thanks I will jump in and see what I can...

    Great, thanks I will jump in and see what I can come up with.
  16. Replies
    12
    Views
    9,648

    Hey, I was wondering if there is a way I can...

    Hey, I was wondering if there is a way I can measure the input/USB voltage? I would like to accurately be able to read what the input voltage is coming from the USB and simply print it via serial for...
  17. Replies
    7
    Views
    1,705

    For example of what I am wanting. If I plug in a...

    For example of what I am wanting. If I plug in a USB flash drive to a Mac it will flash an LED and then go dormant. If you mount the USB or access any files it will begin to flash again. I want to be...
  18. Replies
    7
    Views
    1,705

    Yea, I have no idea what to do with interrupts :)

    Yea, I have no idea what to do with interrupts :)
  19. Replies
    7
    Views
    1,705

    Can I get a bit of info on how interrupts work...

    Can I get a bit of info on how interrupts work exactly? I am trying to sift the internet for some material, but it's pretty insinuated rather than documented. The code I have so far is throwing a...
  20. Replies
    19
    Views
    5,545

    Ok, that sounds like case is closed with this...

    Ok, that sounds like case is closed with this approach then, so lets move on shall we.
  21. Replies
    19
    Views
    5,545

    ***bump***

    ***bump***
  22. Replies
    7
    Views
    1,705

    ***bump***

    ***bump***
  23. Replies
    7
    Views
    1,705

    i am also trying to read the interrupt page to...

    i am also trying to read the interrupt page to see if I can grasp part of the concept before your next reply.
  24. Replies
    7
    Views
    1,705

    I apologize for that, I am using a teensy 3.1...

    I apologize for that, I am using a teensy 3.1 although I think this project will be migrating later to the LC because the cost is 50% less. To tell you the truth this is only my second attempt at any...
  25. Replies
    19
    Views
    5,545

    My next question would be, IS THERE a way to...

    My next question would be, IS THERE a way to detect the current state of another keyboard? Or detect if the system sees a Caps Lock or even change of event.
  26. Replies
    19
    Views
    5,545

    OK, so I was a bit tired last night and wasn't...

    OK, so I was a bit tired last night and wasn't thinking logically about how the mac would control other keyboards. Come to find out during boot and a quick trip to the BIOS on a dell I have here, I...
  27. Replies
    19
    Views
    5,545

    OK, so #PaulStoffregen I am sure you already...

    OK, so #PaulStoffregen I am sure you already know, but using the Serial.read() to map the read keys to an integer and then using Serial.write() will allow you to see what the raw keycode is. Judging...
  28. Replies
    7
    Views
    1,705

    Detecting The State Of A USB Port

    Hello all, I am wondering if there is a way to detect the state of a USB port on a Mac and possibly listen for state changes.

    I have explored options with the serial libraries without avail. So...
  29. Replies
    19
    Views
    5,545

    I think I am experiencing issues similar to the...

    I think I am experiencing issues similar to the above. I am trying to send the caps lock keystroke to a Mac in my void setup after a 3 second delay. This seems to work fine on a windows box, but on...
Results 1 to 29 of 29