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

Search:

Type: Posts; User: Adriano

Search: Search took 0.00 seconds.

  1. Replies
    28
    Views
    5,826

    Put the settings of the analog reading in the...

    Put the settings of the analog reading in the setup, you don't need to setup it each second.


    analogReference(DEFAULT);
    analogReadAveraging(4);
    analogReadResolution(12); // 0 to 4096, default...
  2. Replies
    28
    Views
    5,826

    No, you don't need that work. I can read the...

    No, you don't need that work. I can read the battery with 3M and 1M resistors.



    BATT ---- 3M ---- 1M ---- GND
    |
    Teensy Analog In


    So you can use the 1.2V reference...
  3. Replies
    1
    Views
    680

    Compress ili9341 images (Tool)

    When I begun using teensy, the memory was "infinite" compared to the 2kb of RAM and 16kb or Flash on Arduinos.

    If you don't want a SD to draw some images on the ili9341, you can save them on the...
  4. Replies
    4
    Views
    1,017

    @Frank: I have a lot of devices connected on the...

    @Frank: I have a lot of devices connected on the SPI, all from ebay.
    - SD module (The module is this one: http://modtronix.com/mod-sdcard-l5.html)
    - Display with unused but connected SD and touch...
  5. Replies
    4
    Views
    1,017

    SD + ILI9341 conflict

    Hi,
    I am using T3.2 with a SD card reader and a ILI9341 display. After executing the sketch I am unable to initialize a second time the SD (if powered off).
    The code is simple:


    #include...
  6. 120ms delay on startup

    Hi, I can't understand this delay.
    After the SLEEP-OUT command is sent, the ILI9341 need up to 5ms to be active:
    https://www.newhavendisplay.com/app_notes/ILI9341.pdf - page 101

    In the Adafruit...
  7. Oh thank you very much! It works perfectly and...

    Oh thank you very much!
    It works perfectly and it is exactly the code I had on my SSD1351 library.

    I used another method yesterday but I think it was more a hack than a workaround :P



    void...
  8. 5 SPI devices (with DC) on Teensy 3.2, is it possible?

    Hi,
    I have 5 displays (SSD1351) and want to connect them to a Teensy 3.2.
    I need MISO, MOSI, CLK, DC and 5 different CS.
    I see that I can use this PINS:
    (2 or 10) + (6 or 9) + (20 or 23) + (21 or...
  9. Replies
    20
    Views
    4,429

    Hi kpc. Did you found a solution at the end? I...

    Hi kpc.
    Did you found a solution at the end? I have exactly the same problem with my Teensy 3.2: It powered (I powered it) off when I was uploading the sketch.

    Now it seems to be dead. No LED, no...
  10. Replies
    16
    Views
    5,149

    Hi Defragster. Thank you very much for your...

    Hi Defragster.
    Thank you very much for your help!
    Found this on line 633 of pins_teensy.c:



    analog_init();
    // for background about this startup delay, please see this conversation
    //...
  11. Replies
    16
    Views
    5,149

    startup time (400ms)

    Hi,
    I am trying to power on the teensy to save some data and then power off it again.
    I noticed that the first line in the setup is executed after 400ms (on a small sketch and on heavy sketches).
    ...
  12. Replies
    13
    Views
    6,295

    I have the same problem with: - the SD library...

    I have the same problem with:
    - the SD library
    - Adafruit_SSD1306 library

    And of course a lot of library error messages (the most from Adafruit) that use Wire1 - not defined in teensy 3.2.

    It...
  13. Writing a new image from the buffer sent over the...

    Writing a new image from the buffer sent over the serial:



    byte[] aby = new byte[3];
    int iBuffLen = Math.Min(4096, serialPort1.BytesToRead -...
  14. Thanks to Craig I was able to using this camera...

    Thanks to Craig I was able to using this camera (thank you again!!!).

    I connected SIOC and SIOD to PIN SCL0 and SDA0 (pin 18 and 19 on Teensy 3.2) with a pull up resistor. Without a 4,7k it didn't...
  15. Wow, great work! I will get this camera in some...

    Wow, great work! I will get this camera in some days and I will use your code!
    Thank you very much! Maybe it is not optimized but it is simple to understand and easy to modify.

    What I miss is a...
  16. Replies
    1
    Views
    724

    Sorry, my fault... Somewhere I used PIN13 as...

    Sorry, my fault...

    Somewhere I used PIN13 as output (Teensy LED) and overwrote the SCK-pin from SPI.
  17. Replies
    1
    Views
    724

    SPI works only in the Setup()

    Hi,
    I wrote a simple SPI program for a FRAM. I was never able to comunicate with the memory and so I downloaded the FM25VXX library.

    Now, it works if I put all the functionality in the setup()....
  18. Replies
    34
    Views
    19,784

    Thank you Paul. Yes I was meaning on large data,...

    Thank you Paul.
    Yes I was meaning on large data, Windows is the faster.
    For each byte, I suppose, Windows wait until the byte/packet was sent, before send another one. So it is normal that it is...
  19. Replies
    34
    Views
    19,784

    Can you explain me something please? In the...

    Can you explain me something please? In the benchmark of Paul, Windows is the fastest OS for bulk transfers. I can't understand why Windows can send up to 4008 bytes per second! Linux and Mac doesn't...
  20. Thank you for the links potatotron! They help me...

    Thank you for the links potatotron! They help me for my project! And 0.14$ for a RGB led + 2811 chip is a dream price (hoping the quality and durability is ok)!

    I found this post from Paul:...
  21. A nice project! And it seems to be well...

    A nice project! And it seems to be well documented. I want to create something with that, using some external sensors. But the strips seems to be too expensive.

    5m/300 leds for 100$:...
  22. Replies
    0
    Views
    851

    Teensy works after plug out/in cable

    Hi,
    I don't know why, but I am able to use the Teensy only after plug out and in the USB cable.

    After programming my Teensy, it works. I can use it and everything is fine.

    If I shut down and...
  23. Replies
    0
    Views
    2,345

    GetReport and SetReport for HID?

    Hi,
    I am trying to make a HID device. I can send and receive a buffer array without problems with my teensy3 and a c++ program on windows.

    Now I was trying to use the GetReport and SetReport...
Results 1 to 23 of 24