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

Search:

Type: Posts; User: wolfv

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,463

    Does the following quote from...

    Does the following quote from https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro apply to Teensy LC?:
  2. That's too easy;) Works great. Thank you! ...

    That's too easy;) Works great. Thank you!

    Where is the Mouse.scroll() function documented? It's not listed in https://www.arduino.cc/reference/en/language/functions/usb/mouse/

    This works:
    ...
  3. Horizontal scroll with Arduino Mouse library, Teensy LC, and Linux?

    I built a keyboard with Teensy LC as the controller.
    The firmware is written with the Arduino 1.8.5 library and Teensyduino 1.42.
    I would like to issue horizontal scroll commands from the keyboard...
  4. Replies
    8
    Views
    1,463

    UPDATE: I plugged in the "bad" Teensy and...

    UPDATE:

    I plugged in the "bad" Teensy and tried the Teensy button again, and this time it worked. Blink loaded and the LED blinked.
    I edit the Blink sketch to blink faster and reloaded, it...
  5. Replies
    8
    Views
    1,463

    UPDATE: I plugged in a different Teensy LC and...

    UPDATE:

    I plugged in a different Teensy LC and the Blink program loaded & ran nice.
    Then I plug in the bad Teenly LC again and get the same "error sending reboot command to /dev/hidraw4".
  6. Replies
    8
    Views
    1,463

    I will try to answer the best I can. Not...

    I will try to answer the best I can.


    Not sure what "work to complete reprogramming" means.
    The Teensy did not get reprogrammed. The old program still runs on Teensy. It did not get...
  7. Replies
    8
    Views
    1,463

    error sending reboot command to /dev/hidraw4

    My Teensy LC and loader were working yesterday, now it gets an error sending reboot command to /dev/hidraw4.
    From Arduino IDE, File > Examples > 01.Basics > Blink
    Then click Upload. The resulting...
  8. Replies
    7
    Views
    1,308

    Thanks for all the solutions!

    Thanks for all your solutions!
    Here are two more solutions:

    - circuit board edge mount kit:
    14430

    - mini breadboard with mount holes:
    14429

    I am going with tonton81's solution for its low...
  9. Replies
    7
    Views
    1,308

    I am having a hard time picturing that. Do you...

    I am having a hard time picturing that.
    Do you mean a socket header like this?:
    14423
    How do you glue the wired header to the plywood?
    Gluing the headers vertically would put the wires through...
  10. Replies
    7
    Views
    1,308

    Best way to mount Teensy LC to plywood?

    I want to mount a Teensy LC onto 1/8 inch thick plywood.
    It should be sturdy enough for plugging and unplugging the USB.
    Teensy LC does not have standoff holes.
    Two options are described below.
    ...
  11. Replies
    2
    Views
    1,173

    Thanks Michael, that clears it up.

    Thanks Michael, that clears it up.
  12. Replies
    2
    Views
    1,173

    How to get 173 mA from USB or Teensy LC?

    I wanted to power a row of 26 LEDs with Teensy LC Vin.
    The 26 LEDs need 173 mA at 3.6 to 5.5 volts. USB 2.0 can handle 500mA.
    But the Teensy LC pin out says Vin is 8mA.
    Is there some way to get...
  13. Replies
    0
    Views
    1,396

    set -D compiler option in Arduino IDE?

    Never mind. Please ignore this post.
    It's simpler to edit a config file in the custom library than use the -D compiler option.

    The gcc -D option flag defines a macro to be used by the...
  14. Replies
    0
    Views
    805

    keyboard SHIFT_MASK question

    On keyboards, characters like ~ ! @ # $ % ^ & ( ) _ { } < > are activated with MODIFIERKEY_LEFT_SHIFT.
    I am designing a compact keybaord and am looking for ways to print these characters without...
  15. Replies
    10
    Views
    3,009

    Thank you Paul. That works! :)

    Thank you Paul. That works! :)
  16. Replies
    10
    Views
    3,009

    The following example sketch has two arrays,...

    The following example sketch has two arrays, layout[] and transform[].
    Both arrays are const, so I would like to put both of them in PROGMEM.

    The application I am working on is a keyboard....
  17. Replies
    10
    Views
    3,009

    In the application the transform array is used to...

    In the application the transform array is used to map one set of row-column coordinates to another set of row-column coordinates. https://en.wikipedia.org/wiki/Transformation_(function)
    In the...
  18. Replies
    10
    Views
    3,009

    Hi Paul, I apologize for not explaining better. ...

    Hi Paul,
    I apologize for not explaining better. Here is a better explanation:

    In the actual application, A and B are class objects.
    As I understand it, moving class objects into PROGMEM doesn't...
  19. Replies
    10
    Views
    3,009

    PROGMEM on a transform array?

    I want to use PROGMEM with a transform array.
    PROGMEM and TRANSFORM array work as expected when implemented individually.
    But PROGMEM with TRANSFORM array implemented together does not have the...
  20. Does Teensyduino have something like HID listen?

    The HID listen page says (on https://www.pjrc.com/teensy/hid_listen.html):


    Does Teensyduino have something like HID listen?

    I am using Teensy LC.
  21. Replies
    25
    Views
    7,299

    If adding and removing PROGMEM results in the...

    If adding and removing PROGMEM results in the same amount of free RAM, how does one know if PROGMEM was ineffective or the const was compiled into code space?

    Answer:
    If adding PROGMEM increases...
  22. Replies
    25
    Views
    7,299

    Your right. Free SRAM is as expected after...

    Your right. Free SRAM is as expected after removing "const".
    If n_* variables not const, uint32_t consumes 14 bytes more RAM ((4-1)*5=15 bytes) compared to uint8_t.
    If n_* variables are const,...
  23. Replies
    25
    Views
    7,299

    That's what I was expecting. There is something...

    That's what I was expecting. There is something fishy going on here.
    Output shows 'Not using PROGMEM' uses the same amount of RAM for uint8_t and uint16_t; that's not right.

    The sketch with...
  24. Replies
    25
    Views
    7,299

    I also tried it with uint8_t, uint32_t, and got...

    I also tried it with uint8_t, uint32_t, and got the exact same output every time:


    Using PROGMEM
    Free SRAM = 2493
    num=1
    num=2
    num=3
    num=4
    num=5
  25. Replies
    25
    Views
    7,299

    Oh no! The PROGMEM on class data didn't save any...

    Oh no! The PROGMEM on class data didn't save any RAM.
    All the apparent RAM savings came from the pointers array in PROGMEM, and me forgetting to use F().

    So it's back to basics. I try to put...
  26. Replies
    25
    Views
    7,299

    I am using Teensy 2.0 because the PCB for the...

    I am using Teensy 2.0 because the PCB for the project was already done for Teensy 2.0 before Teensy LC came out.
  27. Replies
    25
    Views
    7,299

    It works now! My sketch in post #1 puts a...

    It works now!
    My sketch in post #1 puts a "PROGMEM" macro on every object.
    But that isn't necessary, because the class's function is code, which gets put in code space anyways.
    Only the class's...
  28. Replies
    25
    Views
    7,299

    defragster, I understand what you are saying...

    defragster,

    I understand what you are saying about arrays in PROGMEM.
    I learned PROGMEM on string arrays from these two tutorials, which are similar to your example:
    ...
  29. Replies
    25
    Views
    7,299

    How to use const class objects in PROGMEM?

    defragster,

    I just noticed an error in my previous post. PROGMEM saved 2 bytes. I have corrected the post.

    The original sketch from...
  30. Replies
    25
    Views
    7,299

    defragster, I ran the sketch from...

    defragster,

    I ran the sketch from http://www.avrfreaks.net/forum/can-i-put-classstruct-objects-progmem and got similar output:


    1 single int/RAM value 11
    2 single int/RAM address 256
    ...
  31. Replies
    25
    Views
    7,299

    Thanks defragster and Theremingenieur, Here is...

    Thanks defragster and Theremingenieur,

    Here is my attempt at using pgm_read_word() in the class function:


    #include <avr/pgmspace.h>

    //comment or uncomment the #define to toggle PROGMEM...
  32. Replies
    25
    Views
    7,299

    How to use const class objects in PROGMEM?

    My Teensy 2.0 project is running low on RAM.
    The project contains many arrays of const objects.
    And there is more than enough flash on Teensy 2.0 to use PROGMEM.

    The following example sketch...
  33. Thread: User Name

    by wolfv
    Replies
    2
    Views
    1,706

    Add C++11 to Arduino for teensy 2.0?

    Thanks for the information Paul. I appreciate the work and support you have put into Teensy.

    To add C++11 to Arduino for Teensy2, change "-std=c++0x" to "-std=c++11" in...
  34. Thread: User Name

    by wolfv
    Replies
    2
    Views
    1,706

    User Name

    Is there a way to add C++11 to Arduino for teensy 2.0?
    I want to put arrays of polymorphic objects into PROGMEM because my project is short on SRAM.

    pYro_65 suggested adding "td=gnu++11" to...
  35. Replies
    14
    Views
    3,997

    User Name

    I uninstall Modem Manager and rebooted.

    $ sudo dnf remove ModemManager
    But "Serial ports" is still dimmed in the Aduino IDE menu:(:
    Tools > Port > Serial ports (dimmed)

    Thank you for all your...
  36. Replies
    14
    Views
    3,997

    reply to MichaelMeissner

    The first time I ran "id" there was no "dialout".
    After logging out and back in there is a "dialout":

    $ id
    uid=1000(wolfv) gid=1000(wolfv) groups=1000(wolfv),10(wheel),18(dialout)...
  37. Replies
    14
    Views
    3,997

    reply to MichaelMeissner

    Does this mean that the serial port device was created?:

    $ ls -lh /dev/ttyACM*
    crw-rw-rw-. 1 root dialout 166, 0 Sep 23 09:09 /dev/ttyACM0
    If so, the next step is for me to uninstall the Modem...
  38. Replies
    14
    Views
    3,997

    User Name

    MichaelMeissner,

    Does this look OK?
    My systemd log when I unplugged and re-plugged in my Teensy 2.0 on Fedora 22.
    Unplug at 09:09:43 and plug in at 09:09:52:

    $ journalctl --since 09:09
    --...
  39. Replies
    14
    Views
    3,997

    update

    Thank you for the leads MichaelMeissner and PaulStoffrengen.
    Unfortunately my "Tools -> Port-> Serial ports" menu does not update and remains dimmed.
    A summary of the situation follows.

    The...
  40. Replies
    14
    Views
    3,997

    Hi MichaelMeissner, I found the dropdown on...

    Hi MichaelMeissner,

    I found the dropdown on the top-right, under the magnifying glass icon.
    I click "serial" in the dropdown, and then click the "Serial Monitor" button.
    The error message still...
  41. Replies
    14
    Views
    3,997

    Where is this "drop down box" you speak of? I...

    Where is this "drop down box" you speak of?
    I click the "Serial Monitor" button on the top-right (magnifying glass icon) of the Arduino IDE, but the Serial port does not open.

    I already have the...
  42. Replies
    14
    Views
    3,997

    no serial port name defined

    This is my first attempt at using Serial.print() on Linux.
    This sketch compiles and uploads, but when I click on the "Serial Monitor" button, error message says, "no serial port name defined".
    From...
  43. Sure thing Paul - link to this thread is on...

    Sure thing Paul - link to this thread is on http://forum.arduino.cc/index.php?topic=343189.new post #16
  44. You are right Paul. The Sketchbook Location was...

    You are right Paul.
    The Sketchbook Location was /home/wolfv/Arduino (I did not notice the missing "Documents").
    I change the Sketchbook Location to /home/wolfv/Documents/Arduino and everything...
  45. Arduino 1.6.5 IDE with the teensy extension is not finding a library

    I recently migrated from Windows to Linux (Fedora 22).
    I installed two Arduino IDEs on my system:

    Arduino 1.6.5 IDE without teensy extension
    Arduino 1.6.5 IDE with the teensy extension

    I...
  46. Replies
    2
    Views
    2,393

    Heat-shrink tubing large enough to slip over the...

    Heat-shrink tubing large enough to slip over the Teensy board could provide some protection.
    Heat shrink to fit and hot glue the ends to keep the lint out.
  47. solved

    The led number in the Blink file needed to be changed for Teensy 2.0:

    int led = 11;:o Now it blinks nice.
  48. running arduino from Linux command line: "Picked up JAVA_TOOL_OPTIONS:"

    I installed Arduino 1.6.5 and Teensyduino 1.24 on Fedora 22, following the instructions http://www.pjrc.com/teensy/td_download.html
    But when I run the Blink example, Teensy does not blink.
    The...
  49. Thanks Michael. I installed Arduino 1.6.5 with...

    Thanks Michael. I installed Arduino 1.6.5 with Teensyduino 1.24
  50. Selecting a Teensy development environment for Linux

    What are some of the development tool options for Teensy 2.0 on Linux?
    I just migrated from Windows 7 to Linux (Fedora 22). I was using Arduino IDE on Windows 7. I can also use the Make utility...
Results 1 to 50 of 123
Page 1 of 3 1 2 3