You are reading a single comment by @parasquid and its replies. Click here to read the full conversation.
  • Just tried this:

    Serial1.setup(9600,{tx:A9,rx:A10});
    I2C1.setup({scl:B6, sda:B7});
    var lcd = require("HD44780").connectI2C(I2C1);
    lcd.print("Hello World!");
    

    And it's still the timeout error

    >
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v07 (c) 2019 G.Williams
    >Uncaught InternalError: Timeout on I2C Write BUSY
     at line 1 col 111
    ...|4,a|4,a,a,d,d,d|4,d|4,d,d])
                                  ^
    in function "a" called from line 1 col 7
    a(51,1),a(50,1),a(40,1),a(12,1),a(6,1),a(1,1),{write:a,clear...
          ^
    in function "a" called from line 1 col 133
    ...,a|4,a,a,d,d,d|4,d|4,d,d])})
                                  ^
    in function "connectI2C" called from line 1 col 842
    ...('HD44780').connectI2C(I2C1);lcd.print('Hello World!')
                                  ^
    

    Also, just a small observation: I feel I've been spoiled by the nRF52 chips because I keep expecting I can just assign any peripheral to any pin, whereas with STM32 there are only specific pins you can use for certain peripherals :P

About

Avatar for parasquid @parasquid started